[][src]Struct gcp_client::google::cloud::tasks::v2::GetTaskRequest

pub struct GetTaskRequest {
    pub name: String,
    pub response_view: i32,
}

Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask].

Fields

name: String

Required. The task name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID

response_view: i32

The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be returned.

By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.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][google.cloud.tasks.v2.Task.View.FULL] requires cloudtasks.tasks.fullView Google IAM permission on the [Task][google.cloud.tasks.v2.Task] resource.

Implementations

impl GetTaskRequest[src]

pub fn response_view(&self) -> View[src]

Returns the enum value of response_view, or the default if the field is set to an invalid enum value.

pub fn set_response_view(&mut self, value: View)[src]

Sets response_view to the provided enum value.

Trait Implementations

impl Clone for GetTaskRequest[src]

impl Debug for GetTaskRequest[src]

impl Default for GetTaskRequest[src]

impl Message for GetTaskRequest[src]

impl PartialEq<GetTaskRequest> for GetTaskRequest[src]

impl StructuralPartialEq for GetTaskRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]