Enum google_api_proto::google::cloud::tasks::v2beta3::task::PayloadType
source · 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.
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.
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 queues to provide a way to inspect contents of pull tasks through the [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
Implementations§
source§impl PayloadType
impl PayloadType
sourcepub fn merge<B>(
field: &mut Option<PayloadType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<PayloadType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for PayloadType
impl Clone for PayloadType
source§fn clone(&self) -> PayloadType
fn clone(&self) -> PayloadType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PayloadType
impl Debug for PayloadType
source§impl PartialEq for PayloadType
impl PartialEq for PayloadType
source§fn eq(&self, other: &PayloadType) -> bool
fn eq(&self, other: &PayloadType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PayloadType
Auto Trait Implementations§
impl !Freeze for PayloadType
impl RefUnwindSafe for PayloadType
impl Send for PayloadType
impl Sync for PayloadType
impl Unpin for PayloadType
impl UnwindSafe for PayloadType
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request