pub struct ListTimeSeries(/* private fields */);Expand description
The request builder for MetricService::list_time_series calls.
§Example
use builder::metric_service::ListTimeSeries;
use gax::paginator::ItemPaginator;
let builder = prepare_request_builder();
let mut items = builder.by_item();
while let Some(result) = items.next().await {
let item = result?;
}
fn prepare_request_builder() -> ListTimeSeries {
// ... details omitted ...
}Implementations§
Source§impl ListTimeSeries
impl ListTimeSeries
Sourcepub fn with_request<V: Into<ListTimeSeriesRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<ListTimeSeriesRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<ListTimeSeriesResponse>
pub async fn send(self) -> Result<ListTimeSeriesResponse>
Sends the request.
Sourcepub fn by_page(self) -> impl Paginator<ListTimeSeriesResponse, Error>
pub fn by_page(self) -> impl Paginator<ListTimeSeriesResponse, Error>
Streams each page in the collection.
Sourcepub fn by_item(self) -> impl ItemPaginator<ListTimeSeriesResponse, Error>
pub fn by_item(self) -> impl ItemPaginator<ListTimeSeriesResponse, Error>
Streams each item in the collection.
Sourcepub fn set_name<T: Into<String>>(self, v: T) -> Self
pub fn set_name<T: Into<String>>(self, v: T) -> Self
Sets the value of name.
This is a required field for requests.
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
This is a required field for requests.
Sourcepub fn set_interval<T>(self, v: T) -> Selfwhere
T: Into<TimeInterval>,
pub fn set_interval<T>(self, v: T) -> Selfwhere
T: Into<TimeInterval>,
Sets the value of interval.
This is a required field for requests.
Sourcepub fn set_or_clear_interval<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeInterval>,
pub fn set_or_clear_interval<T>(self, v: Option<T>) -> Selfwhere
T: Into<TimeInterval>,
Sets or clears the value of interval.
This is a required field for requests.
Sourcepub fn set_aggregation<T>(self, v: T) -> Selfwhere
T: Into<Aggregation>,
pub fn set_aggregation<T>(self, v: T) -> Selfwhere
T: Into<Aggregation>,
Sets the value of aggregation.
Sourcepub fn set_or_clear_aggregation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Aggregation>,
pub fn set_or_clear_aggregation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Aggregation>,
Sets or clears the value of aggregation.
Sourcepub fn set_secondary_aggregation<T>(self, v: T) -> Selfwhere
T: Into<Aggregation>,
pub fn set_secondary_aggregation<T>(self, v: T) -> Selfwhere
T: Into<Aggregation>,
Sets the value of secondary_aggregation.
Sourcepub fn set_or_clear_secondary_aggregation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Aggregation>,
pub fn set_or_clear_secondary_aggregation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Aggregation>,
Sets or clears the value of secondary_aggregation.
Sourcepub fn set_order_by<T: Into<String>>(self, v: T) -> Self
pub fn set_order_by<T: Into<String>>(self, v: T) -> Self
Sets the value of order_by.
Sourcepub fn set_view<T: Into<TimeSeriesView>>(self, v: T) -> Self
pub fn set_view<T: Into<TimeSeriesView>>(self, v: T) -> Self
Sets the value of view.
This is a required field for requests.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Trait Implementations§
Source§impl Clone for ListTimeSeries
impl Clone for ListTimeSeries
Source§fn clone(&self) -> ListTimeSeries
fn clone(&self) -> ListTimeSeries
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ListTimeSeries
impl !RefUnwindSafe for ListTimeSeries
impl Send for ListTimeSeries
impl Sync for ListTimeSeries
impl Unpin for ListTimeSeries
impl !UnwindSafe for ListTimeSeries
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> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.