pub struct EventRequest {
pub program_id: ProgramId,
pub event_name: Option<String>,
pub duration: Option<Duration>,
pub priority: Priority,
pub targets: Vec<Target>,
pub report_descriptors: Option<Vec<ReportDescriptor>>,
pub payload_descriptors: Option<Vec<EventPayloadDescriptor>>,
pub interval_period: Option<IntervalPeriod>,
pub intervals: Option<Vec<EventInterval>>,
}Fields§
§program_id: ProgramIdURL safe VTN assigned object ID.
event_name: Option<String>User defined string for use in debugging or User Interface.
duration: Option<Duration>Optional duration of event. May be used to loop intervals. See User Guide.
priority: PriorityRelative priority of event. A lower number is a higher priority.
targets: Vec<Target>A list of targets.
report_descriptors: Option<Vec<ReportDescriptor>>A list of reportDescriptor objects. Used to request reports from VEN.
payload_descriptors: Option<Vec<EventPayloadDescriptor>>A list of payloadDescriptor objects.
interval_period: Option<IntervalPeriod>Defines default start and durations of intervals.
intervals: Option<Vec<EventInterval>>A list of interval objects.
Implementations§
Source§impl EventRequest
impl EventRequest
pub fn new(program_id: ProgramId) -> Self
pub fn with_event_name(self, event_name: impl ToString) -> Self
pub fn with_priority(self, priority: Priority) -> Self
pub fn with_targets(self, targets: Vec<Target>) -> Self
pub fn with_report_descriptors( self, report_descriptors: Vec<ReportDescriptor>, ) -> Self
pub fn with_payload_descriptors( self, payload_descriptors: Vec<EventPayloadDescriptor>, ) -> Self
pub fn with_interval_period(self, interval_period: IntervalPeriod) -> Self
pub fn with_intervals(self, intervals: Vec<EventInterval>) -> Self
Trait Implementations§
Source§impl Clone for EventRequest
impl Clone for EventRequest
Source§fn clone(&self) -> EventRequest
fn clone(&self) -> EventRequest
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 EventRequest
impl Debug for EventRequest
Source§impl<'de> Deserialize<'de> for EventRequest
impl<'de> Deserialize<'de> for EventRequest
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 EventRequest
impl PartialEq for EventRequest
Source§fn eq(&self, other: &EventRequest) -> bool
fn eq(&self, other: &EventRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventRequest
impl Serialize for EventRequest
Source§impl Validate for EventRequest
impl Validate for EventRequest
Source§impl<'v_a> ValidateArgs<'v_a> for EventRequest
impl<'v_a> ValidateArgs<'v_a> for EventRequest
impl StructuralPartialEq for EventRequest
Auto Trait Implementations§
impl Freeze for EventRequest
impl RefUnwindSafe for EventRequest
impl Send for EventRequest
impl Sync for EventRequest
impl Unpin for EventRequest
impl UnsafeUnpin for EventRequest
impl UnwindSafe for EventRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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