pub struct Period {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub start: Option<DateTimeDt>,
pub end: Option<DateTimeDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
start: Option<DateTimeDt>
Starting time with inclusive boundary
end: Option<DateTimeDt>
End time with inclusive boundary, if not ongoing
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Period
impl<'de> Deserialize<'de> for Period
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for Period
impl Element for Period
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
Auto Trait Implementations§
impl RefUnwindSafe for Period
impl Send for Period
impl Sync for Period
impl Unpin for Period
impl UnwindSafe for Period
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