pub struct UpdateOptions {
pub cli: Option<CliCommandOptions>,
pub id: String,
pub name: String,
pub patches: Vec<Patch>,
pub validate: bool,
pub wait_for_stage: i32,
pub wait_policy: i32,
pub xns: Option<XnsActivityOptions>,
}Expand description
UpdateOptions identifies an rpc method as a Temporal update definition, and describes available update configuration options
Fields§
§cli: Option<CliCommandOptions>cli command overrides
id: StringID expression
name: StringFully-qualified update name
patches: Vec<Patch>Configure patches, by default, patches are introduced in enabled mode
validate: boolInclude validation hook
wait_for_stage: i32Default wait policy if not specified
wait_policy: i32👎Deprecated
§xns: Option<XnsActivityOptions>XNS can be used to configure default activity options for xns workflow executions
Implementations§
Source§impl UpdateOptions
impl UpdateOptions
Sourcepub fn wait_policy(&self) -> WaitPolicy
pub fn wait_policy(&self) -> WaitPolicy
Returns the enum value of wait_policy, or the default if the field is set to an invalid enum value.
Sourcepub fn set_wait_policy(&mut self, value: WaitPolicy)
pub fn set_wait_policy(&mut self, value: WaitPolicy)
Sets wait_policy to the provided enum value.
Sourcepub fn wait_for_stage(&self) -> WaitPolicy
pub fn wait_for_stage(&self) -> WaitPolicy
Returns the enum value of wait_for_stage, or the default if the field is set to an invalid enum value.
Sourcepub fn set_wait_for_stage(&mut self, value: WaitPolicy)
pub fn set_wait_for_stage(&mut self, value: WaitPolicy)
Sets wait_for_stage to the provided enum value.
Trait Implementations§
Source§impl Clone for UpdateOptions
impl Clone for UpdateOptions
Source§fn clone(&self) -> UpdateOptions
fn clone(&self) -> UpdateOptions
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 UpdateOptions
impl Debug for UpdateOptions
Source§impl Default for UpdateOptions
impl Default for UpdateOptions
Source§impl Message for UpdateOptions
impl Message for UpdateOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for UpdateOptions
impl PartialEq for UpdateOptions
Source§fn eq(&self, other: &UpdateOptions) -> bool
fn eq(&self, other: &UpdateOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateOptions
Auto Trait Implementations§
impl Freeze for UpdateOptions
impl RefUnwindSafe for UpdateOptions
impl Send for UpdateOptions
impl Sync for UpdateOptions
impl Unpin for UpdateOptions
impl UnsafeUnpin for UpdateOptions
impl UnwindSafe for UpdateOptions
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