pub struct DCParameter {
base_type: DCTypeDefinition,
identifier: Option<String>,
default_value: Vec<u8>,
}Expand description
Represents the type specification of a parameter, which can live under an atomic field, or become a standalone parameter field. (e.g. for structs)
Fields§
§base_type: DCTypeDefinition§identifier: Option<String>§default_value: Vec<u8>Implementations§
Source§impl DCParameter
impl DCParameter
pub fn has_identifier(&self) -> bool
pub fn has_default_value(&self) -> bool
pub fn get_default_value(&self) -> &Vec<u8> ⓘ
Trait Implementations§
Source§impl Debug for DCParameter
impl Debug for DCParameter
Source§impl Display for DCParameter
impl Display for DCParameter
Source§impl LegacyDCHash for DCParameter
impl LegacyDCHash for DCParameter
Source§fn generate_hash(&self, hashgen: &mut DCHashGenerator)
fn generate_hash(&self, hashgen: &mut DCHashGenerator)
Accumulates the properties of this DC element into the file hash.
Auto Trait Implementations§
impl Freeze for DCParameter
impl RefUnwindSafe for DCParameter
impl Send for DCParameter
impl Sync for DCParameter
impl Unpin for DCParameter
impl UnwindSafe for DCParameter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more