pub struct Integer {
pub id: Option<String>,
pub extension: Vec<Extension>,
pub value: Option<i32>,
}Expand description
Primitive Type integer
A whole number
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 managable, 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<i32>Primitive value for integer
The actual value
Trait Implementations§
impl Eq for Integer
Source§impl Primitive for Integer
impl Primitive for Integer
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 Integer
Auto Trait Implementations§
impl Freeze for Integer
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnsafeUnpin for Integer
impl UnwindSafe for Integer
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