pub struct TimeSeriesQuery {
pub limit: Option<i32>,
pub include_metadata: Option<bool>,
pub cursor: Option<String>,
pub partition: Option<Partition>,
pub external_id_prefix: Option<String>,
pub asset_ids: Option<Vec<i64>>,
pub root_asset_ids: Option<Vec<i64>>,
}Expand description
Query for listing time series.
Fields§
§limit: Option<i32>Max number of returned time series. Default is 100, maximum is 1000.
include_metadata: Option<bool>Whether the metadata field should be returned or not.
cursor: Option<String>Cursor for pagination.
partition: Option<Partition>Split the data set into partitions.
external_id_prefix: Option<String>Filter by this (case-sensitive) prefix for the external ID.
asset_ids: Option<Vec<i64>>Include time series which belong to one of these assets.
root_asset_ids: Option<Vec<i64>>Include time series which belong to an asset in the tree of one of these root assets.
Trait Implementations§
Source§impl Clone for TimeSeriesQuery
impl Clone for TimeSeriesQuery
Source§fn clone(&self) -> TimeSeriesQuery
fn clone(&self) -> TimeSeriesQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 TimeSeriesQuery
impl Debug for TimeSeriesQuery
Source§impl Default for TimeSeriesQuery
impl Default for TimeSeriesQuery
Source§fn default() -> TimeSeriesQuery
fn default() -> TimeSeriesQuery
Returns the “default value” for a type. Read more
Source§impl IntoParams for TimeSeriesQuery
impl IntoParams for TimeSeriesQuery
Source§impl List<TimeSeriesQuery, TimeSeries> for TimeSeriesResource
impl List<TimeSeriesQuery, TimeSeries> for TimeSeriesResource
Source§fn list(
&self,
params: Option<TParams>,
) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
fn list( &self, params: Option<TParams>, ) -> impl Future<Output = Result<ItemsVec<TResponse, Cursor>>> + Send
Query a resource with optional query parameters. Read more
Source§fn list_all(
&self,
params: TParams,
) -> impl Future<Output = Result<Vec<TResponse>>> + Send
fn list_all( &self, params: TParams, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
Query a resource with query parameters, continuing until the cursor is exhausted. Read more
Source§fn list_all_stream(
&self,
params: TParams,
) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
fn list_all_stream( &self, params: TParams, ) -> impl TryStream<Ok = TResponse, Error = Error, Item = Result<TResponse>> + Send
List resources, following cursors. This returns a stream, you can abort the stream whenever you
want and only resources retrieved up to that point will be returned. Read more
Source§impl SetCursor for TimeSeriesQuery
impl SetCursor for TimeSeriesQuery
Source§fn set_cursor(&mut self, cursor: Option<String>)
fn set_cursor(&mut self, cursor: Option<String>)
Set cursor to the given value.
Source§impl WithPartition for TimeSeriesQuery
impl WithPartition for TimeSeriesQuery
Source§fn with_partition(&self, partition: Partition) -> Self
fn with_partition(&self, partition: Partition) -> Self
Create a clone of self with given partition.
Auto Trait Implementations§
impl Freeze for TimeSeriesQuery
impl RefUnwindSafe for TimeSeriesQuery
impl Send for TimeSeriesQuery
impl Sync for TimeSeriesQuery
impl Unpin for TimeSeriesQuery
impl UnwindSafe for TimeSeriesQuery
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