#[non_exhaustive]pub enum VersioningOverride {
Pinned(WorkerDeploymentVersion),
AutoUpgrade,
OneTime(WorkerDeploymentVersion),
}Expand description
Overrides a workflow’s worker deployment routing.
Experimental: Pinned and auto-upgrade overrides for client-started workflows require Temporal Server 1.28.0 or later. Child workflow overrides require Temporal Server 1.32.0 or later.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pinned(WorkerDeploymentVersion)
Keep routing the workflow to this deployment version until the override is removed.
AutoUpgrade
Route the workflow using the task queue’s current deployment version.
OneTime(WorkerDeploymentVersion)
Route to this version until one workflow task completes there, then use the versioning behavior and deployment version reported by that worker.
Requires Temporal Server 1.32.0 or later.
Trait Implementations§
Source§impl Clone for VersioningOverride
impl Clone for VersioningOverride
Source§fn clone(&self) -> VersioningOverride
fn clone(&self) -> VersioningOverride
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VersioningOverride
impl Debug for VersioningOverride
impl Eq for VersioningOverride
Source§impl PartialEq for VersioningOverride
impl PartialEq 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
Mutably borrows from an owned value. Read more
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
Compare self to
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>
Wrap the input message
T in a tonic::Request