Struct fhir_rs::datatype::complex::Availability
source · pub struct Availability {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub available_time: Option<Vec<AvailabilityAvailableTimeElement>>,
pub not_available_time: Option<Vec<AvailabilityNotAvailableTimeElement>>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
available_time: Option<Vec<AvailabilityAvailableTimeElement>>
Times the {item} is available
not_available_time: Option<Vec<AvailabilityNotAvailableTimeElement>>
Not available during this time due to provided reason
Implementations§
source§impl Availability
impl Availability
pub fn set_available_time( self, v: Vec<AvailabilityAvailableTimeElement> ) -> Self
pub fn add_available_time(self, v: AvailabilityAvailableTimeElement) -> Self
pub fn set_not_available_time( self, v: Vec<AvailabilityNotAvailableTimeElement> ) -> Self
pub fn add_not_available_time( self, v: AvailabilityNotAvailableTimeElement ) -> Self
Trait Implementations§
source§impl Clone for Availability
impl Clone for Availability
source§fn clone(&self) -> Availability
fn clone(&self) -> Availability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Availability
impl Debug for Availability
source§impl Default for Availability
impl Default for Availability
source§fn default() -> Availability
fn default() -> Availability
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Availability
impl<'de> Deserialize<'de> for Availability
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Availability
impl Element for Availability
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
source§impl Serialize for Availability
impl Serialize for Availability
Auto Trait Implementations§
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnwindSafe for Availability
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