pub struct WorkerDeploymentOptions {
pub deployment_name: String,
pub build_id: String,
pub worker_versioning_mode: i32,
}Expand description
Worker Deployment options set in SDK that need to be sent to server in every poll. Experimental. Worker Deployments are experimental and might significantly change in the future.
Fields§
§deployment_name: StringRequired when worker_versioning_mode==VERSIONED.
build_id: StringThe Build ID of the worker. Required when worker_versioning_mode==VERSIONED, in which case,
the worker will be part of a Deployment Version.
worker_versioning_mode: i32Required. Versioning Mode for this worker. Must be the same for all workers with the
same deployment_name and build_id combination, across all Task Queues.
When worker_versioning_mode==VERSIONED, the worker will be part of a Deployment Version.
Implementations§
Source§impl WorkerDeploymentOptions
impl WorkerDeploymentOptions
Sourcepub fn worker_versioning_mode(&self) -> WorkerVersioningMode
pub fn worker_versioning_mode(&self) -> WorkerVersioningMode
Returns the enum value of worker_versioning_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_worker_versioning_mode(&mut self, value: WorkerVersioningMode)
pub fn set_worker_versioning_mode(&mut self, value: WorkerVersioningMode)
Sets worker_versioning_mode to the provided enum value.
Trait Implementations§
Source§impl Clone for WorkerDeploymentOptions
impl Clone for WorkerDeploymentOptions
Source§fn clone(&self) -> WorkerDeploymentOptions
fn clone(&self) -> WorkerDeploymentOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WorkerDeploymentOptions
impl Debug for WorkerDeploymentOptions
Source§impl Default for WorkerDeploymentOptions
impl Default for WorkerDeploymentOptions
Source§impl Hash for WorkerDeploymentOptions
impl Hash for WorkerDeploymentOptions
Source§impl Message for WorkerDeploymentOptions
impl Message for WorkerDeploymentOptions
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 WorkerDeploymentOptions
impl Name for WorkerDeploymentOptions
Source§const NAME: &'static str = "WorkerDeploymentOptions"
const NAME: &'static str = "WorkerDeploymentOptions"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.deployment.v1"
const PACKAGE: &'static str = "temporal.api.deployment.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 WorkerDeploymentOptions
impl PartialEq for WorkerDeploymentOptions
impl Eq for WorkerDeploymentOptions
impl StructuralPartialEq for WorkerDeploymentOptions
Auto Trait Implementations§
impl Freeze for WorkerDeploymentOptions
impl RefUnwindSafe for WorkerDeploymentOptions
impl Send for WorkerDeploymentOptions
impl Sync for WorkerDeploymentOptions
impl Unpin for WorkerDeploymentOptions
impl UnsafeUnpin for WorkerDeploymentOptions
impl UnwindSafe for WorkerDeploymentOptions
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