pub enum LibrarySubject {
CodeableConcept(CodeableConcept),
Reference(Reference),
}Expand description
The types Library.subject[x] allows.
Variants§
Trait Implementations§
Source§impl Choice for LibrarySubject
Available on crate feature base only.
impl Choice for LibrarySubject
Available on crate feature
base only.Source§const TYPES: &'static [&'static str]
const TYPES: &'static [&'static str]
The FHIR type codes the element allows, in definition order. The
JSON key is the element name followed by the capitalised code
(
value + Quantity).Source§fn decode_as(
code: &str,
key: &str,
o: &mut Obj<'_>,
d: &mut Decoder,
) -> Option<Self>
fn decode_as( code: &str, key: &str, o: &mut Obj<'_>, d: &mut Decoder, ) -> Option<Self>
Read the variant for type
code from key key of o.Source§fn encode_into(&self, base: &str, w: &mut ObjWriter)
fn encode_into(&self, base: &str, w: &mut ObjWriter)
Write the chosen variant under
base plus its type suffix.Source§impl Clone for LibrarySubject
impl Clone for LibrarySubject
Source§impl Debug for LibrarySubject
impl Debug for LibrarySubject
Source§impl PartialEq for LibrarySubject
impl PartialEq for LibrarySubject
impl StructuralPartialEq for LibrarySubject
Auto Trait Implementations§
impl Freeze for LibrarySubject
impl RefUnwindSafe for LibrarySubject
impl Send for LibrarySubject
impl Sync for LibrarySubject
impl Unpin for LibrarySubject
impl UnsafeUnpin for LibrarySubject
impl UnwindSafe for LibrarySubject
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