pub struct ProgramRequest {
pub program_name: String,
pub interval_period: Option<IntervalPeriod>,
pub program_descriptions: Option<Vec<ProgramDescription>>,
pub payload_descriptors: Option<Vec<PayloadDescriptor>>,
pub attributes: Option<Vec<ValuesMap>>,
pub targets: Vec<Target>,
}Fields§
§program_name: StringShort name to uniquely identify program.
interval_period: Option<IntervalPeriod>The temporal span of the program, which could be years-long.
program_descriptions: Option<Vec<ProgramDescription>>A list of programDescriptions
payload_descriptors: Option<Vec<PayloadDescriptor>>A list of payloadDescriptors.
attributes: Option<Vec<ValuesMap>>§targets: Vec<Target>A list of targets.
Implementations§
Source§impl ProgramRequest
impl ProgramRequest
pub fn new(name: impl ToString) -> ProgramRequest
Trait Implementations§
Source§impl Clone for ProgramRequest
impl Clone for ProgramRequest
Source§fn clone(&self) -> ProgramRequest
fn clone(&self) -> ProgramRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProgramRequest
impl Debug for ProgramRequest
Source§impl<'de> Deserialize<'de> for ProgramRequest
impl<'de> Deserialize<'de> for ProgramRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProgramRequest
impl PartialEq for ProgramRequest
Source§impl Serialize for ProgramRequest
impl Serialize for ProgramRequest
impl StructuralPartialEq for ProgramRequest
Source§impl Validate for ProgramRequest
impl Validate for ProgramRequest
Source§impl<'v_a> ValidateArgs<'v_a> for ProgramRequest
impl<'v_a> ValidateArgs<'v_a> for ProgramRequest
Auto Trait Implementations§
impl Freeze for ProgramRequest
impl RefUnwindSafe for ProgramRequest
impl Send for ProgramRequest
impl Sync for ProgramRequest
impl Unpin for ProgramRequest
impl UnsafeUnpin for ProgramRequest
impl UnwindSafe for ProgramRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more