pub struct Member {
pub field: &'static FieldSchema,
pub kind: Kind,
pub choice: Option<&'static str>,
pub sibling: bool,
}Expand description
A JSON member name resolved against the elements of a type.
The JSON representation names an element by its name, a choice element by
its stem and the suffix of one alternative, and the id and extension of
a primitive element by its name behind a leading underscore
(https://hl7.org/fhir/R4/json.html#2.6.2).
Fields§
§field: &'static FieldSchemaThe element the member belongs to.
kind: KindHow the member’s value travels: the chosen alternative’s kind for a choice form, the element’s own kind otherwise.
choice: Option<&'static str>The type code of the chosen alternative, for a choice form.
sibling: boolWhether the member is the _ sibling carrying a primitive’s id and
extension.
Trait Implementations§
impl Copy for Member
impl Eq for Member
impl StructuralPartialEq for Member
Auto Trait Implementations§
impl Freeze for Member
impl RefUnwindSafe for Member
impl Send for Member
impl Sync for Member
impl Unpin for Member
impl UnsafeUnpin for Member
impl UnwindSafe for Member
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