pub struct Label { /* private fields */ }Expand description
A security label: a coded value in a code system, as a FHIR R4 Coding
is, with the system’s version where it is known.
Implementations§
Source§impl Label
impl Label
Sourcepub fn new(system: &str, code: &str) -> Result<Self, LabelCodeError>
pub fn new(system: &str, code: &str) -> Result<Self, LabelCodeError>
The label code in system.
§Errors
LabelCodeError::System for a system that is no absolute URI or
holds a |, and LabelCodeError::Code for a code that is no FHIR
code.
Trait Implementations§
impl Eq for Label
Source§impl Ord for Label
impl Ord for Label
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Label
impl PartialOrd for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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