pub enum DataParameter<Tz>{
StartPeriod {
datetime: DateTime<Tz>,
period_format: PeriodFormat,
},
EndPeriod {
datetime: DateTime<Tz>,
period_format: PeriodFormat,
},
UpdatedAfter {
datetime: DateTime<Tz>,
},
Detail {
detail: Detail,
},
FirstNObservations {
n: usize,
},
LastNObservations {
n: usize,
},
IncludeHistory {
yes: bool,
},
Format {
format: Format,
},
}Expand description
Parameter types for data queries.
Variants§
StartPeriod
It is possible to define a date range for which Observations are to be returned by using the startPeriod and/or endPeriod parameters.
EndPeriod
It is possible to define a date range for which Observations are to be returned by using the startPeriod and/or endPeriod parameters.
UpdatedAfter
By supplying a percent-encoded ISO 8601 timestamp for the updatedAfter parameter, it is possible to retrieve the latest version of changed values in the database after a certain point in time (i.e., updates and revisions). This will include:
- The Observations that have been added since the supplied timestamp
- TYhe Observations that have been revised since the supplied timestamp
- The Observations that have been deleted since the supplied timestamp
Detail
Using the detail parameter, it is possible to specify the desired amount of information to be returned by the web service.
FirstNObservations
Using the firstNObservations parameter, it is possible to specify the maximum number of Observations to be returned for each of the matching Time series, starting from the first Observation (firstNObservations).
LastNObservations
Using the lastNObservations parameter, it is possible to specify the maximum number of Observations to be returned for each of the matching Time series, counting back from the most recent Observation (lastNObservations).
IncludeHistory
Using the includeHistory parameter, you can instruct the web service to return previous versions of the matching data. This allows you to see how the data have evolved over time (i.e., see when new data were released, revised or deleted). Possible options are:
false: Only the version currently in production will be returned. This is the default.true: The version currently in production and all previous versions will be returned.
Format
Using the format parameter, you can instruct the web service to return data in different formats.
Trait Implementations§
Source§impl<Tz> Clone for DataParameter<Tz>
impl<Tz> Clone for DataParameter<Tz>
Source§fn clone(&self) -> DataParameter<Tz>
fn clone(&self) -> DataParameter<Tz>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<Tz> Debug for DataParameter<Tz>
impl<Tz> Debug for DataParameter<Tz>
Auto Trait Implementations§
impl<Tz> Freeze for DataParameter<Tz>
impl<Tz> RefUnwindSafe for DataParameter<Tz>
impl<Tz> Send for DataParameter<Tz>
impl<Tz> Sync for DataParameter<Tz>
impl<Tz> Unpin for DataParameter<Tz>
impl<Tz> UnsafeUnpin for DataParameter<Tz>
impl<Tz> UnwindSafe for DataParameter<Tz>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.