pub struct Boolean {
pub id: Option<String>,
pub extension: Vec<Extension>,
pub value: Option<bool>,
}Expand description
Primitive Type boolean
Value of “true” or “false”
Fields§
§id: Option<String>xml:id (or equivalent in JSON)
unique id for the element within a resource (for internal references)
extension: Vec<Extension>Additional content defined by implementations
May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
value: Option<bool>Primitive value for boolean
The actual value
Trait Implementations§
impl Eq for Boolean
Source§impl Primitive for Boolean
impl Primitive for Boolean
Source§fn value_json(&self) -> Result<Option<Value>, EncodeError>
fn value_json(&self) -> Result<Option<Value>, EncodeError>
Source§fn element_json(&self) -> Result<Option<Value>, EncodeError>
fn element_json(&self) -> Result<Option<Value>, EncodeError>
Source§fn has_element(&self) -> bool
fn has_element(&self) -> bool
Whether the primitive carries an
id or an extension.Source§fn serialize_value<S: Serializer>(
&self,
serializer: S,
) -> Result<S::Ok, S::Error>
fn serialize_value<S: Serializer>( &self, serializer: S, ) -> Result<S::Ok, S::Error>
Writes the value,
null when the primitive carries none. Read moreSource§fn serialize_element<S: Serializer>(
&self,
serializer: S,
) -> Result<S::Ok, S::Error>
fn serialize_element<S: Serializer>( &self, serializer: S, ) -> Result<S::Ok, S::Error>
impl StructuralPartialEq for Boolean
Auto Trait Implementations§
impl Freeze for Boolean
impl RefUnwindSafe for Boolean
impl Send for Boolean
impl Sync for Boolean
impl Unpin for Boolean
impl UnsafeUnpin for Boolean
impl UnwindSafe for Boolean
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