pub struct QueryAssets(/* private fields */);Expand description
The request builder for AssetService::query_assets calls.
§Example
use builder::asset_service::QueryAssets;
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> QueryAssets {
// ... details omitted ...
}Implementations§
Source§impl QueryAssets
impl QueryAssets
Sourcepub fn with_request<V: Into<QueryAssetsRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<QueryAssetsRequest>>(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<QueryAssetsResponse>
pub async fn send(self) -> Result<QueryAssetsResponse>
Sends the request.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
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.
Sourcepub fn set_timeout<T>(self, v: T) -> Self
pub fn set_timeout<T>(self, v: T) -> Self
Sets the value of timeout.
Sourcepub fn set_or_clear_timeout<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_timeout<T>(self, v: Option<T>) -> Self
Sets or clears the value of timeout.
Sourcepub fn set_output_config<T>(self, v: T) -> Selfwhere
T: Into<QueryAssetsOutputConfig>,
pub fn set_output_config<T>(self, v: T) -> Selfwhere
T: Into<QueryAssetsOutputConfig>,
Sets the value of output_config.
Sourcepub fn set_or_clear_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueryAssetsOutputConfig>,
pub fn set_or_clear_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<QueryAssetsOutputConfig>,
Sets or clears the value of output_config.
Sourcepub fn set_query<T: Into<Option<Query>>>(self, v: T) -> Self
pub fn set_query<T: Into<Option<Query>>>(self, v: T) -> Self
Sets the value of query.
Note that all the setters affecting query are
mutually exclusive.
Sourcepub fn set_statement<T: Into<String>>(self, v: T) -> Self
pub fn set_statement<T: Into<String>>(self, v: T) -> Self
Sets the value of query
to hold a Statement.
Note that all the setters affecting query are
mutually exclusive.
Sourcepub fn set_job_reference<T: Into<String>>(self, v: T) -> Self
pub fn set_job_reference<T: Into<String>>(self, v: T) -> Self
Sets the value of query
to hold a JobReference.
Note that all the setters affecting query are
mutually exclusive.
Sourcepub fn set_time<T: Into<Option<Time>>>(self, v: T) -> Self
pub fn set_time<T: Into<Option<Time>>>(self, v: T) -> Self
Sets the value of time.
Note that all the setters affecting time are
mutually exclusive.
Sourcepub fn set_read_time_window<T: Into<Box<TimeWindow>>>(self, v: T) -> Self
pub fn set_read_time_window<T: Into<Box<TimeWindow>>>(self, v: T) -> Self
Sets the value of time
to hold a ReadTimeWindow.
Note that all the setters affecting time are
mutually exclusive.
Trait Implementations§
Source§impl Clone for QueryAssets
impl Clone for QueryAssets
Source§fn clone(&self) -> QueryAssets
fn clone(&self) -> QueryAssets
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 QueryAssets
impl !RefUnwindSafe for QueryAssets
impl Send for QueryAssets
impl Sync for QueryAssets
impl Unpin for QueryAssets
impl !UnwindSafe for QueryAssets
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.