Enum google_api_proto::google::cloud::tasks::v2beta2::task::PayloadType
source · pub enum PayloadType {
AppEngineHttpRequest(AppEngineHttpRequest),
PullMessage(PullMessage),
HttpRequest(HttpRequest),
}
Expand description
Required.
The task’s payload is used by the task’s target to process the task. A payload is valid only if it is compatible with the queue’s target.
Variants§
AppEngineHttpRequest(AppEngineHttpRequest)
App Engine HTTP request that is sent to the task’s target. Can be set only if [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set on the queue.
An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
PullMessage(PullMessage)
[LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] 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.v2beta2.HttpRequest] set.
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