pub struct TimingRepeatElement {
Show 17 fields pub id: Option<String>, pub extension: Option<Vec<Extension>>, pub bounds: Option<Period>, pub count: Option<PositiveIntDt>, pub count_max: Option<PositiveIntDt>, pub duration: Option<DecimalDt>, pub duration_max: Option<DecimalDt>, pub duration_unit: Option<CodeDt>, pub frequency: Option<PositiveIntDt>, pub frequency_max: Option<PositiveIntDt>, pub period: Option<DecimalDt>, pub period_max: Option<DecimalDt>, pub period_unit: Option<CodeDt>, pub day_of_week: Option<Vec<CodeDt>>, pub time_of_day: Option<Vec<TimeDt>>, pub when: Option<Vec<CodeDt>>, pub offset: Option<UnsignedIntDt>,
}

Fields§

§id: Option<String>

Unique id for inter-element referencing

§extension: Option<Vec<Extension>>

Additional content defined by implementations

§bounds: Option<Period>

Length/Range of lengths, or (Start and/or end) limits

§count: Option<PositiveIntDt>

Number of times to repeat

§count_max: Option<PositiveIntDt>

Maximum number of times to repeat

§duration: Option<DecimalDt>

How long when it happens

§duration_max: Option<DecimalDt>

How long when it happens (Max)

§duration_unit: Option<CodeDt>

s | min | h | d | wk | mo | a - unit of time (UCUM)

§frequency: Option<PositiveIntDt>

Indicates the number of repetitions that should occur within a period. I.e. Event occurs frequency times per period

§frequency_max: Option<PositiveIntDt>

Event occurs up to frequencyMax times per period

§period: Option<DecimalDt>

The duration to which the frequency applies. I.e. Event occurs frequency times per period

§period_max: Option<DecimalDt>

Upper limit of period (3-4 hours)

§period_unit: Option<CodeDt>

s | min | h | d | wk | mo | a - unit of time (UCUM)

§day_of_week: Option<Vec<CodeDt>>

mon | tue | wed | thu | fri | sat | sun

§time_of_day: Option<Vec<TimeDt>>

Time of day for action

§when: Option<Vec<CodeDt>>

Code for time period of occurrence

§offset: Option<UnsignedIntDt>

Minutes from event (before or after)

Implementations§

source§

impl TimingRepeatElement

source

pub fn set_bounds(self, v: Period) -> Self

source

pub fn set_count<T: Into<PositiveIntDt>>(self, v: T) -> Self

source

pub fn set_count_max<T: Into<PositiveIntDt>>(self, v: T) -> Self

source

pub fn set_duration<T: Into<DecimalDt>>(self, v: T) -> Self

source

pub fn set_duration_max<T: Into<DecimalDt>>(self, v: T) -> Self

source

pub fn set_duration_unit<T: Into<CodeDt>>(self, v: T) -> Self

source

pub fn set_frequency<T: Into<PositiveIntDt>>(self, v: T) -> Self

source

pub fn set_frequency_max<T: Into<PositiveIntDt>>(self, v: T) -> Self

source

pub fn set_period<T: Into<DecimalDt>>(self, v: T) -> Self

source

pub fn set_period_max<T: Into<DecimalDt>>(self, v: T) -> Self

source

pub fn set_period_unit<T: Into<CodeDt>>(self, v: T) -> Self

source

pub fn set_day_of_week(self, v: Vec<CodeDt>) -> Self

source

pub fn add_day_of_week<T: Into<CodeDt>>(self, v: T) -> Self

source

pub fn set_time_of_day(self, v: Vec<TimeDt>) -> Self

source

pub fn add_time_of_day<T: Into<TimeDt>>(self, v: T) -> Self

source

pub fn set_when(self, v: Vec<CodeDt>) -> Self

source

pub fn add_when<T: Into<CodeDt>>(self, v: T) -> Self

source

pub fn set_offset<T: Into<UnsignedIntDt>>(self, v: T) -> Self

Trait Implementations§

source§

impl Clone for TimingRepeatElement

source§

fn clone(&self) -> TimingRepeatElement

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TimingRepeatElement

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for TimingRepeatElement

source§

fn default() -> TimingRepeatElement

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for TimingRepeatElement

source§

fn deserialize<De>(deserializer: De) -> Result<Self>
where De: Deserializer<'de>,

source§

impl Element for TimingRepeatElement

source§

fn has_id(&self) -> bool

source§

fn id(&self) -> &Option<String>

source§

fn set_id<T: Into<String>>(self, id: T) -> Self

source§

fn has_extension(&self) -> bool

source§

fn extension(&self) -> &Option<Vec<Extension>>

source§

fn set_extension(self, ext: Vec<Extension>) -> Self

source§

fn add_extension(self, ext: Extension) -> Self

source§

impl Serialize for TimingRepeatElement

source§

fn serialize<Ser: Serializer>(&self, serializer: Ser) -> Result<()>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more