pub struct Code {
pub id: Option<String>,
pub extension: Vec<Extension>,
pub value: Option<String>,
}Expand description
Primitive Type code
A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents
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<String>Primitive value for code
Implementations§
Trait Implementations§
impl Eq for Code
Source§impl Primitive for Code
impl Primitive for Code
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 Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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