pub struct Attribute {Show 20 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 format: Option<String>,
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>>,
pub links: Option<HashMap<String, String>>,
pub framings: Option<HashMap<String, HashMap<String, FramingScope>>>,
}
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>
§format: Option<String>
§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>>
§links: Option<HashMap<String, String>>
§framings: Option<HashMap<String, HashMap<String, FramingScope>>>
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<Attribute, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Attribute, <__D as Deserializer<'de>>::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 Framings for Attribute
impl Framings for Attribute
fn set_framing(&mut self, id: String, framing: HashMap<String, FramingScope>)
Source§impl Information for Attribute
impl Information for Attribute
fn set_information(&mut self, l: Language, information: String)
Source§impl Serialize for Attribute
impl Serialize for Attribute
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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