pub struct Attribute {Show 17 fields
pub name: String,
pub attribute_type: Option<NestedAttrType>,
pub is_flagged: bool,
pub labels: Option<HashMap<Language, String>>,
pub category_labels: Option<HashMap<Language, String>>,
pub informations: Option<HashMap<Language, String>>,
pub entry_codes: Option<EntryCodes>,
pub entries: Option<HashMap<Language, EntriesElement>>,
pub mapping: Option<String>,
pub encoding: Option<Encoding>,
pub unit: Option<String>,
pub entry_codes_mapping: Option<Vec<String>>,
pub condition: Option<String>,
pub dependencies: Option<Vec<String>>,
pub cardinality: Option<String>,
pub conformance: Option<String>,
pub standards: Option<Vec<Standard>>,
}Fields§
§name: String§attribute_type: Option<NestedAttrType>§is_flagged: bool§labels: Option<HashMap<Language, String>>§category_labels: Option<HashMap<Language, String>>§informations: Option<HashMap<Language, String>>§entry_codes: Option<EntryCodes>§entries: Option<HashMap<Language, EntriesElement>>§mapping: Option<String>§encoding: Option<Encoding>§unit: Option<String>§entry_codes_mapping: Option<Vec<String>>§condition: Option<String>§dependencies: Option<Vec<String>>§cardinality: Option<String>§conformance: Option<String>§standards: Option<Vec<Standard>>Implementations§
Source§impl Attribute
impl Attribute
pub fn new(name: String) -> Attribute
pub fn set_flagged(&mut self)
pub fn set_attribute_type(&mut self, attribute_type: NestedAttrType)
pub fn merge(&mut self, other: &Attribute)
Trait Implementations§
Source§impl Cardinalitys for Attribute
impl Cardinalitys for Attribute
fn set_cardinality(&mut self, cardinality: String)
Source§impl CharacterEncodings for Attribute
impl CharacterEncodings for Attribute
fn set_encoding(&mut self, encoding: Encoding)
Source§impl Conditionals for Attribute
impl Conditionals for Attribute
Source§impl Conformances for Attribute
impl Conformances for Attribute
fn set_conformance(&mut self, conformance: String)
Source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EntryCodes for Attribute
impl EntryCodes for Attribute
fn set_entry_codes(&mut self, entry_codes: EntryCodes)
Source§impl Information for Attribute
impl Information for Attribute
fn set_information(&mut self, l: Language, information: String)
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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