pub struct ScheduleNexusOperationCommandAttributes {
pub endpoint: String,
pub service: String,
pub operation: String,
pub input: Option<Payload>,
pub schedule_to_close_timeout: Option<Duration>,
pub nexus_header: HashMap<String, String>,
pub schedule_to_start_timeout: Option<Duration>,
pub start_to_close_timeout: Option<Duration>,
}Fields§
§endpoint: StringEndpoint name, must exist in the endpoint registry or this command will fail.
service: StringService name.
operation: StringOperation name.
input: Option<Payload>Input for the operation. The server converts this into Nexus request content and the appropriate content headers internally when sending the StartOperation request. On the handler side, if it is also backed by Temporal, the content is transformed back to the original Payload sent in this command.
schedule_to_close_timeout: Option<Duration>Schedule-to-close timeout for this operation. Indicates how long the caller is willing to wait for operation completion. Calls are retried internally by the server. (– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –)
nexus_header: HashMap<String, String>Header to attach to the Nexus request. Users are responsible for encrypting sensitive data in this header as it is stored in workflow history and transmitted to external services as-is. This is useful for propagating tracing information. Note these headers are not the same as Temporal headers on internal activities and child workflows, these are transmitted to Nexus operations that may be external and are not traditional payloads.
schedule_to_start_timeout: Option<Duration>Schedule-to-start timeout for this operation. Indicates how long the caller is willing to wait for the operation to be started (or completed if synchronous) by the handler. If the operation is not started within this timeout, it will fail with TIMEOUT_TYPE_SCHEDULE_TO_START. If not set or zero, no schedule-to-start timeout is enforced. (– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –) Requires server version 1.31.0 or later.
start_to_close_timeout: Option<Duration>Start-to-close timeout for this operation. Indicates how long the caller is willing to wait for an asynchronous operation to complete after it has been started. If the operation does not complete within this timeout after starting, it will fail with TIMEOUT_TYPE_START_TO_CLOSE. Only applies to asynchronous operations. Synchronous operations ignore this timeout. If not set or zero, no start-to-close timeout is enforced. (– api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: “to” is used to indicate interval. –) Requires server version 1.31.0 or later.
Trait Implementations§
Source§impl Clone for ScheduleNexusOperationCommandAttributes
impl Clone for ScheduleNexusOperationCommandAttributes
Source§fn clone(&self) -> ScheduleNexusOperationCommandAttributes
fn clone(&self) -> ScheduleNexusOperationCommandAttributes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl From<ScheduleNexusOperationCommandAttributes> for Attributes
impl From<ScheduleNexusOperationCommandAttributes> for Attributes
Source§fn from(value: ScheduleNexusOperationCommandAttributes) -> Self
fn from(value: ScheduleNexusOperationCommandAttributes) -> Self
Source§impl Message for ScheduleNexusOperationCommandAttributes
impl Message for ScheduleNexusOperationCommandAttributes
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 ScheduleNexusOperationCommandAttributes
impl Name for ScheduleNexusOperationCommandAttributes
Source§const NAME: &'static str = "ScheduleNexusOperationCommandAttributes"
const NAME: &'static str = "ScheduleNexusOperationCommandAttributes"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.command.v1"
const PACKAGE: &'static str = "temporal.api.command.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 ScheduleNexusOperationCommandAttributes
impl PartialEq for ScheduleNexusOperationCommandAttributes
Source§fn eq(&self, other: &ScheduleNexusOperationCommandAttributes) -> bool
fn eq(&self, other: &ScheduleNexusOperationCommandAttributes) -> bool
self and other values to be equal, and is used by ==.§impl PayloadVisitable for ScheduleNexusOperationCommandAttributes
impl PayloadVisitable for ScheduleNexusOperationCommandAttributes
§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 ScheduleNexusOperationCommandAttributes
Auto Trait Implementations§
impl Freeze for ScheduleNexusOperationCommandAttributes
impl RefUnwindSafe for ScheduleNexusOperationCommandAttributes
impl Send for ScheduleNexusOperationCommandAttributes
impl Sync for ScheduleNexusOperationCommandAttributes
impl Unpin for ScheduleNexusOperationCommandAttributes
impl UnsafeUnpin for ScheduleNexusOperationCommandAttributes
impl UnwindSafe for ScheduleNexusOperationCommandAttributes
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