Struct donet_core::dcparameter::DCParameter
source · pub struct DCParameter<'dc> {
parent: &'dc DCAtomicField<'dc>,
base_type: DCTypeDefinition,
identifier: Option<String>,
type_alias: String,
default_value: Vec<u8>,
has_default_value: bool,
}
Expand description
Represents the type specification of a parameter within an atomic field.
Fields§
§parent: &'dc DCAtomicField<'dc>
§base_type: DCTypeDefinition
§identifier: Option<String>
§type_alias: String
§default_value: Vec<u8>
§has_default_value: bool
Implementations§
source§impl<'dc> DCParameter<'dc>
impl<'dc> DCParameter<'dc>
pub fn get_atomic_field(&self) -> &'dc DCAtomicField<'_>
pub fn has_default_value(&self) -> bool
pub fn get_default_value(&self) -> Vec<u8> ⓘ
pub fn set_type(&mut self, dtype: DCTypeDefinition)
pub fn set_identifier(&mut self, name: &str)
pub fn set_default_value(&mut self, v: Vec<u8>)
Trait Implementations§
source§impl<'dc> Debug for DCParameter<'dc>
impl<'dc> Debug for DCParameter<'dc>
source§impl<'dc> Display for DCParameter<'dc>
impl<'dc> Display for DCParameter<'dc>
source§impl<'dc> LegacyDCHash for DCParameter<'dc>
impl<'dc> LegacyDCHash for DCParameter<'dc>
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<'dc> Freeze for DCParameter<'dc>
impl<'dc> RefUnwindSafe for DCParameter<'dc>
impl<'dc> Send for DCParameter<'dc>
impl<'dc> Sync for DCParameter<'dc>
impl<'dc> Unpin for DCParameter<'dc>
impl<'dc> UnwindSafe for DCParameter<'dc>
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