Enum googapis::google::cloud::tasks::v2beta3::task::PayloadType [−][src]
pub enum PayloadType {
AppEngineHttpRequest(AppEngineHttpRequest),
HttpRequest(HttpRequest),
PullMessage(PullMessage),
}
Expand description
Required. The message to send to the worker.
Variants
AppEngineHttpRequest(AppEngineHttpRequest)
HTTP request that is sent to the App Engine app handler.
An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
Tuple Fields of AppEngineHttpRequest
HttpRequest(HttpRequest)
HTTP request that is sent to the task’s target.
An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
Tuple Fields of HttpRequest
0: HttpRequest
PullMessage(PullMessage)
Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This payload type cannot be explicitly set through Cloud Tasks API. Its purpose, currently is to provide backward compatibility with App Engine Task Queue [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) queues to provide a way to inspect contents of pull tasks through the [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
Tuple Fields of PullMessage
0: PullMessage
Implementations
pub fn merge<B>(
field: &mut Option<PayloadType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PayloadType
impl Send for PayloadType
impl Sync for PayloadType
impl Unpin for PayloadType
impl UnwindSafe for PayloadType
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more