pub struct RespondQueryTaskCompletedRequest {
pub task_token: Vec<u8>,
pub completed_type: i32,
pub query_result: Option<Payloads>,
pub error_message: String,
pub namespace: String,
pub failure: Option<Failure>,
pub cause: i32,
}Fields§
§task_token: Vec<u8>§completed_type: i32§query_result: Option<Payloads>The result of the query.
Mutually exclusive with error_message and failure. Set when the query succeeds.
error_message: StringA plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED.
SDKs should also fill in the more complete failure field to provide the full context and
support encryption of failure information.
error_message will be duplicated if the failure field is present to support callers
that pre-date the addition of that field, regardless of whether or not a custom failure
converter is used.
Mutually exclusive with query_result. Set when the query fails.
namespace: String§failure: Option<Failure>The full reason for this query failure. This field is newer than error_message and can be
encoded by the SDK’s failure converter to support E2E encryption of messages and stack
traces.
Mutually exclusive with query_result. Set when the query fails.
cause: i32Why did the task fail? It’s important to note that many of the variants in this enum cannot apply to worker responses. See the type’s doc for more.
Implementations§
Source§impl RespondQueryTaskCompletedRequest
impl RespondQueryTaskCompletedRequest
Sourcepub fn completed_type(&self) -> QueryResultType
pub fn completed_type(&self) -> QueryResultType
Returns the enum value of completed_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_completed_type(&mut self, value: QueryResultType)
pub fn set_completed_type(&mut self, value: QueryResultType)
Sets completed_type to the provided enum value.
Sourcepub fn cause(&self) -> WorkflowTaskFailedCause
pub fn cause(&self) -> WorkflowTaskFailedCause
Returns the enum value of cause, or the default if the field is set to an invalid enum value.
Sourcepub fn set_cause(&mut self, value: WorkflowTaskFailedCause)
pub fn set_cause(&mut self, value: WorkflowTaskFailedCause)
Sets cause to the provided enum value.
Trait Implementations§
Source§impl Clone for RespondQueryTaskCompletedRequest
impl Clone for RespondQueryTaskCompletedRequest
Source§fn clone(&self) -> RespondQueryTaskCompletedRequest
fn clone(&self) -> RespondQueryTaskCompletedRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for RespondQueryTaskCompletedRequest
impl Message for RespondQueryTaskCompletedRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for RespondQueryTaskCompletedRequest
impl Name for RespondQueryTaskCompletedRequest
Source§const NAME: &'static str = "RespondQueryTaskCompletedRequest"
const NAME: &'static str = "RespondQueryTaskCompletedRequest"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.workflowservice.v1"
const PACKAGE: &'static str = "temporal.api.workflowservice.v1"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for RespondQueryTaskCompletedRequest
impl PartialEq for RespondQueryTaskCompletedRequest
Source§fn eq(&self, other: &RespondQueryTaskCompletedRequest) -> bool
fn eq(&self, other: &RespondQueryTaskCompletedRequest) -> bool
self and other values to be equal, and is used by ==.§impl PayloadVisitable for RespondQueryTaskCompletedRequest
impl PayloadVisitable for RespondQueryTaskCompletedRequest
§fn visit_payloads_mut<'a>(
&'a mut self,
visitor: &'a mut (dyn AsyncPayloadVisitor + Send),
) -> BoxFuture<'a, ()>
fn visit_payloads_mut<'a>( &'a mut self, visitor: &'a mut (dyn AsyncPayloadVisitor + Send), ) -> BoxFuture<'a, ()>
impl StructuralPartialEq for RespondQueryTaskCompletedRequest
Auto Trait Implementations§
impl Freeze for RespondQueryTaskCompletedRequest
impl RefUnwindSafe for RespondQueryTaskCompletedRequest
impl Send for RespondQueryTaskCompletedRequest
impl Sync for RespondQueryTaskCompletedRequest
impl Unpin for RespondQueryTaskCompletedRequest
impl UnsafeUnpin for RespondQueryTaskCompletedRequest
impl UnwindSafe for RespondQueryTaskCompletedRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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