pub struct Concept {
pub code: String,
pub active: bool,
pub effective_time: Option<String>,
pub module: Option<Ordinal>,
}Expand description
A stored concept.
Fields§
§code: StringThe native code, for example the SCTID.
active: boolWhether the concept is active in this version.
effective_time: Option<String>The version the concept last changed, as the code system writes it.
module: Option<Ordinal>The module or owner concept, when the code system has one.
Implementations§
Source§impl Concept
impl Concept
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, RecordError>
pub fn decode(bytes: &[u8]) -> Result<Self, RecordError>
Sourcepub fn decode_code(bytes: &[u8]) -> Result<String, RecordError>
pub fn decode_code(bytes: &[u8]) -> Result<String, RecordError>
Decodes the native code of a record and stops there.
The code is the first field, so a caller that wants only the code reads one length and one string instead of the whole record.
§Errors
Returns RecordError when the code is truncated or not UTF-8.
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 UnsafeUnpin 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