pub struct ReportDescriptor {
pub payload_type: ReportType,
pub reading_type: Option<ReadingType>,
pub units: Option<Unit>,
pub targets: Option<Vec<Target>>,
pub aggregate: bool,
pub start_interval: i32,
pub num_intervals: i32,
pub historical: bool,
pub frequency: i32,
pub repeat: i32,
pub report_intervals: ReportIntervals,
}Expand description
An object that may be used to request a report from a VEN.
Fields§
§payload_type: ReportTypeRepresents the nature of values.
See enumerations in Definitions for defined string values, or use privately defined strings
reading_type: Option<ReadingType>Enumerated or private string signifying the type of reading.
units: Option<Unit>Units of measure.
targets: Option<Vec<Target>>A list of targets.
aggregate: boolTrue if report should aggregate results from all targeted resources. False if report includes results for each resource.
start_interval: i32The interval on which to generate a report. -1 indicates generate report at end of last interval.
num_intervals: i32The number of intervals to include in a report. -1 indicates that all intervals are to be included.
historical: boolTrue indicates report on intervals preceding startInterval. False indicates report on intervals following startInterval (e.g. forecast).
frequency: i32Number of intervals that elapse between reports. -1 indicates same as numIntervals.
repeat: i32Number of times to repeat report. 1 indicates generate one report. -1 indicates repeat indefinitely.
report_intervals: ReportIntervalsIndicates VEN report interval options. See User Guide.
Implementations§
Source§impl ReportDescriptor
impl ReportDescriptor
Sourcepub fn new(payload_type: ReportType) -> Self
pub fn new(payload_type: ReportType) -> Self
An object that may be used to request a report from a VEN. See OpenADR REST User Guide for detailed description of how configure a report request.
Trait Implementations§
Source§impl Clone for ReportDescriptor
impl Clone for ReportDescriptor
Source§fn clone(&self) -> ReportDescriptor
fn clone(&self) -> ReportDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReportDescriptor
impl Debug for ReportDescriptor
Source§impl<'de> Deserialize<'de> for ReportDescriptor
impl<'de> Deserialize<'de> for ReportDescriptor
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>,
Source§impl PartialEq for ReportDescriptor
impl PartialEq for ReportDescriptor
Source§impl Serialize for ReportDescriptor
impl Serialize for ReportDescriptor
impl StructuralPartialEq for ReportDescriptor
Auto Trait Implementations§
impl Freeze for ReportDescriptor
impl RefUnwindSafe for ReportDescriptor
impl Send for ReportDescriptor
impl Sync for ReportDescriptor
impl Unpin for ReportDescriptor
impl UnsafeUnpin for ReportDescriptor
impl UnwindSafe for ReportDescriptor
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
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>
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>
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