pub struct PositiveInt {
pub id: Option<String>,
pub extension: Vec<Extension>,
pub value: Option<u32>,
}Expand description
Primitive Type positiveInt
An integer with a value that is positive (e.g. >0)
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<u32>Primitive value for positiveInt
Trait Implementations§
Source§impl Clone for PositiveInt
impl Clone for PositiveInt
Source§impl Debug for PositiveInt
impl Debug for PositiveInt
Source§impl Default for PositiveInt
impl Default for PositiveInt
impl Eq for PositiveInt
Source§impl From<u32> for PositiveInt
impl From<u32> for PositiveInt
Source§impl PartialEq for PositiveInt
impl PartialEq for PositiveInt
Source§impl Primitive for PositiveInt
impl Primitive for PositiveInt
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 PositiveInt
Auto Trait Implementations§
impl Freeze for PositiveInt
impl RefUnwindSafe for PositiveInt
impl Send for PositiveInt
impl Sync for PositiveInt
impl Unpin for PositiveInt
impl UnsafeUnpin for PositiveInt
impl UnwindSafe for PositiveInt
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