#[non_exhaustive]pub struct QueryAssetsResponse {
pub job_reference: String,
pub done: bool,
pub response: Option<Response>,
/* private fields */
}Expand description
QueryAssets response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.job_reference: StringReference to a query job.
done: boolThe query response, which can be either an error or a valid response.
If done == false and the query result is being saved in an output, the
output_config field will be set.
If done == true, exactly one of
error, query_result or output_config will be set.
[done] is unset unless the QueryAssetsResponse contains a
[QueryAssetsResponse.job_reference].
response: Option<Response>Implementations§
Source§impl QueryAssetsResponse
impl QueryAssetsResponse
pub fn new() -> Self
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 job_reference.
Sourcepub fn set_response<T: Into<Option<Response>>>(self, v: T) -> Self
pub fn set_response<T: Into<Option<Response>>>(self, v: T) -> Self
Sets the value of response.
Note that all the setters affecting response are mutually
exclusive.
Sourcepub fn error(&self) -> Option<&Box<Status>>
pub fn error(&self) -> Option<&Box<Status>>
The value of response
if it holds a Error, None if the field is not set or
holds a different branch.
Sourcepub fn set_error<T: Into<Box<Status>>>(self, v: T) -> Self
pub fn set_error<T: Into<Box<Status>>>(self, v: T) -> Self
Sets the value of response
to hold a Error.
Note that all the setters affecting response are
mutually exclusive.
Sourcepub fn query_result(&self) -> Option<&Box<QueryResult>>
pub fn query_result(&self) -> Option<&Box<QueryResult>>
The value of response
if it holds a QueryResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_query_result<T: Into<Box<QueryResult>>>(self, v: T) -> Self
pub fn set_query_result<T: Into<Box<QueryResult>>>(self, v: T) -> Self
Sets the value of response
to hold a QueryResult.
Note that all the setters affecting response are
mutually exclusive.
Sourcepub fn output_config(&self) -> Option<&Box<QueryAssetsOutputConfig>>
pub fn output_config(&self) -> Option<&Box<QueryAssetsOutputConfig>>
The value of response
if it holds a OutputConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_output_config<T: Into<Box<QueryAssetsOutputConfig>>>(
self,
v: T,
) -> Self
pub fn set_output_config<T: Into<Box<QueryAssetsOutputConfig>>>( self, v: T, ) -> Self
Sets the value of response
to hold a OutputConfig.
Note that all the setters affecting response are
mutually exclusive.
Trait Implementations§
Source§impl Clone for QueryAssetsResponse
impl Clone for QueryAssetsResponse
Source§fn clone(&self) -> QueryAssetsResponse
fn clone(&self) -> QueryAssetsResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more