pub struct Categorization {
pub artefact: CommonArtefactType,
pub source: Option<String>,
pub target: Option<String>,
pub other: Option<HashMap<String, Value>>,
}
Expand description
Describes what something (the source) falls under (the target).
Fields§
§artefact: CommonArtefactType
§source: Option<String>
§target: Option<String>
§other: Option<HashMap<String, Value>>
Trait Implementations§
Source§impl Artefact for Categorization
impl Artefact for Categorization
fn artefact(&self) -> &CommonArtefactType
fn id(&self) -> &String
fn agency_id(&self) -> Option<&String>
fn version(&self) -> Option<&String>
fn name(&self) -> Option<&String>
fn names(&self) -> Option<&LocalizedText>
fn valid_from(&self) -> Option<&String>
fn valid_to(&self) -> Option<&String>
fn is_external_reference(&self) -> Option<bool>
fn annotations(&self) -> Option<&Vec<Annotation>>
fn links(&self) -> Option<&Vec<Link>>
Source§impl Clone for Categorization
impl Clone for Categorization
Source§fn clone(&self) -> Categorization
fn clone(&self) -> Categorization
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Categorization
impl Debug for Categorization
Source§impl<'de> Deserialize<'de> for Categorization
impl<'de> Deserialize<'de> for Categorization
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 PartialEq for Categorization
impl PartialEq for Categorization
Source§impl Serialize for Categorization
impl Serialize for Categorization
impl Eq for Categorization
impl StructuralPartialEq for Categorization
Auto Trait Implementations§
impl Freeze for Categorization
impl RefUnwindSafe for Categorization
impl Send for Categorization
impl Sync for Categorization
impl Unpin for Categorization
impl UnwindSafe for Categorization
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