#[non_exhaustive]pub struct ListTasksRequest {
pub parent: String,
pub response_view: View,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Request message for listing tasks using ListTasks.
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.parent: StringRequired. The queue name. For example:
projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID
response_view: ViewThe response_view specifies which subset of the Task will be returned.
By default response_view is BASIC; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.
Authorization for FULL requires
cloudtasks.tasks.fullView Google IAM
permission on the Task resource.
page_size: i32Maximum page size.
Fewer tasks than requested might be returned, even if more tasks exist; use next_page_token in the response to determine if more tasks exist.
The maximum page size is 1000. If unspecified, the page size will be the maximum.
page_token: StringA token identifying the page of results to return.
To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of next_page_token returned from the previous call to ListTasks method.
The page token is valid for only 2 hours.
Implementations§
Source§impl ListTasksRequest
impl ListTasksRequest
pub fn new() -> Self
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.
Sourcepub fn set_response_view<T: Into<View>>(self, v: T) -> Self
pub fn set_response_view<T: Into<View>>(self, v: T) -> Self
Sets the value of response_view.
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 ListTasksRequest
impl Clone for ListTasksRequest
Source§fn clone(&self) -> ListTasksRequest
fn clone(&self) -> ListTasksRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more