pub struct Concept { /* private fields */ }Expand description
Owned core of ISO 23387 ConceptType for reuse by dependent standards.
Format codecs retain the complete XML tree separately; this value is the stable, application-facing subset shared by DT and standards such as LOIN.
Implementations§
Source§impl Concept
impl Concept
Sourcepub fn new(
guid: Guid,
date_of_creation: DateTime,
first_name: MultiLanguageText,
definition: MultiLanguageText,
) -> Self
pub fn new( guid: Guid, date_of_creation: DateTime, first_name: MultiLanguageText, definition: MultiLanguageText, ) -> Self
Creates an Annex E-valid required ConceptType core.
pub const fn guid(&self) -> &Guid
pub fn date_of_creation(&self) -> &str
pub fn names(&self) -> &[MultiLanguageText]
pub const fn definition(&self) -> &MultiLanguageText
pub fn references(&self) -> &[Reference]
pub fn add_name(&mut self, name: MultiLanguageText)
pub fn set_definition(&mut self, definition: MultiLanguageText)
pub fn add_reference(&mut self, reference: Reference)
Trait Implementations§
impl Eq for Concept
impl StructuralPartialEq for Concept
Auto Trait Implementations§
impl Freeze for Concept
impl RefUnwindSafe for Concept
impl Send for Concept
impl Sync for Concept
impl Unpin for Concept
impl UnwindSafe for Concept
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