#[repr(i32)]pub enum VersioningIntent {
Unspecified = 0,
Compatible = 1,
Default = 2,
}Expand description
An indication of user’s intent concerning what Build ID versioning approach should be used for a specific command
Variants§
Unspecified = 0
Indicates that core should choose the most sensible default behavior for the type of command, accounting for whether the command will be run on the same task queue as the current worker.
Compatible = 1
Indicates that the command should run on a worker with compatible version if possible. It may not be possible if the target task queue does not also have knowledge of the current worker’s build ID.
Default = 2
Indicates that the command should run on the target task queue’s current overall-default build ID.
Implementations§
Source§impl VersioningIntent
impl VersioningIntent
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for VersioningIntent
impl Clone for VersioningIntent
Source§fn clone(&self) -> VersioningIntent
fn clone(&self) -> VersioningIntent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VersioningIntent
impl Debug for VersioningIntent
Source§impl Default for VersioningIntent
impl Default for VersioningIntent
Source§fn default() -> VersioningIntent
fn default() -> VersioningIntent
Source§impl From<VersioningIntent> for i32
impl From<VersioningIntent> for i32
Source§fn from(value: VersioningIntent) -> i32
fn from(value: VersioningIntent) -> i32
Source§impl Hash for VersioningIntent
impl Hash for VersioningIntent
Source§impl Ord for VersioningIntent
impl Ord for VersioningIntent
Source§fn cmp(&self, other: &VersioningIntent) -> Ordering
fn cmp(&self, other: &VersioningIntent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VersioningIntent
impl PartialEq for VersioningIntent
Source§impl PartialOrd for VersioningIntent
impl PartialOrd for VersioningIntent
Source§impl TryFrom<i32> for VersioningIntent
impl TryFrom<i32> for VersioningIntent
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<VersioningIntent, UnknownEnumValue>
fn try_from(value: i32) -> Result<VersioningIntent, UnknownEnumValue>
impl Copy for VersioningIntent
impl Eq for VersioningIntent
impl StructuralPartialEq for VersioningIntent
Auto Trait Implementations§
impl Freeze for VersioningIntent
impl RefUnwindSafe for VersioningIntent
impl Send for VersioningIntent
impl Sync for VersioningIntent
impl Unpin for VersioningIntent
impl UnsafeUnpin for VersioningIntent
impl UnwindSafe for VersioningIntent
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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