pub struct VersioningOverride {
pub behavior: i32,
pub deployment: Option<Deployment>,
pub pinned_version: String,
pub override: Option<Override>,
}Expand description
Used to override the versioning behavior (and pinned deployment version, if applicable) of a
specific workflow execution. If set, this override takes precedence over worker-sent values.
See WorkflowExecutionInfo.VersioningInfo for more information.
To remove the override, call UpdateWorkflowExecutionOptions with a null
VersioningOverride, and use the update_mask to indicate that it should be mutated.
Pinned behavior overrides are automatically inherited by child workflows, workflow retries, continue-as-new workflows, and cron workflows.
Fields§
§behavior: i32Required.
Deprecated. Use override.
deployment: Option<Deployment>Required if behavior is PINNED. Must be null if behavior is AUTO_UPGRADE.
Identifies the worker deployment to pin the workflow to.
Deprecated. Use override.pinned.version.
pinned_version: StringRequired if behavior is PINNED. Must be absent if behavior is not PINNED.
Identifies the worker deployment version to pin the workflow to, in the format
“<deployment_name>.<build_id>”.
Deprecated. Use override.pinned.version.
override: Option<Override>Indicates whether to override the workflow to be AutoUpgrade or Pinned.
Implementations§
Source§impl VersioningOverride
impl VersioningOverride
Sourcepub fn behavior(&self) -> VersioningBehavior
pub fn behavior(&self) -> VersioningBehavior
Returns the enum value of behavior, or the default if the field is set to an invalid enum value.
Sourcepub fn set_behavior(&mut self, value: VersioningBehavior)
pub fn set_behavior(&mut self, value: VersioningBehavior)
Sets behavior to the provided enum value.
Trait Implementations§
Source§impl Clone for VersioningOverride
impl Clone for VersioningOverride
Source§fn clone(&self) -> VersioningOverride
fn clone(&self) -> VersioningOverride
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersioningOverride
impl Debug for VersioningOverride
Source§impl Default for VersioningOverride
impl Default for VersioningOverride
Source§impl Hash for VersioningOverride
impl Hash for VersioningOverride
Source§impl Message for VersioningOverride
impl Message for VersioningOverride
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 VersioningOverride
impl Name for VersioningOverride
Source§const NAME: &'static str = "VersioningOverride"
const NAME: &'static str = "VersioningOverride"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.workflow.v1"
const PACKAGE: &'static str = "temporal.api.workflow.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 VersioningOverride
impl PartialEq for VersioningOverride
impl Eq for VersioningOverride
impl StructuralPartialEq for VersioningOverride
Auto Trait Implementations§
impl Freeze for VersioningOverride
impl RefUnwindSafe for VersioningOverride
impl Send for VersioningOverride
impl Sync for VersioningOverride
impl Unpin for VersioningOverride
impl UnsafeUnpin for VersioningOverride
impl UnwindSafe for VersioningOverride
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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