pub struct UpdateTaskQueueConfigRequest {
pub namespace: String,
pub identity: String,
pub task_queue: String,
pub task_queue_type: i32,
pub update_queue_rate_limit: Option<RateLimitUpdate>,
pub update_fairness_key_rate_limit_default: Option<RateLimitUpdate>,
pub set_fairness_weight_overrides: HashMap<String, f32>,
pub unset_fairness_weight_overrides: Vec<String>,
}Fields§
§namespace: String§identity: String§task_queue: StringSelects the task queue to update.
task_queue_type: i32§update_queue_rate_limit: Option<RateLimitUpdate>Update to queue-wide rate limit.
If not set, this configuration is unchanged.
NOTE: A limit set by the worker is overriden; and restored again when reset.
If the rate_limit field in the RateLimitUpdate is missing, remove the existing rate limit.
update_fairness_key_rate_limit_default: Option<RateLimitUpdate>Update to the default fairness key rate limit.
If not set, this configuration is unchanged.
If the rate_limit field in the RateLimitUpdate is missing, remove the existing rate limit.
set_fairness_weight_overrides: HashMap<String, f32>If set, overrides the fairness weight for each specified fairness key. Fairness keys not listed in this map will keep their existing overrides (if any).
unset_fairness_weight_overrides: Vec<String>If set, removes any existing fairness weight overrides for each specified fairness key. Fairness weights for corresponding keys fall back to the values set during task creation (if any), or to the default weight of 1.0.
Implementations§
Source§impl UpdateTaskQueueConfigRequest
impl UpdateTaskQueueConfigRequest
Sourcepub fn task_queue_type(&self) -> TaskQueueType
pub fn task_queue_type(&self) -> TaskQueueType
Returns the enum value of task_queue_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_task_queue_type(&mut self, value: TaskQueueType)
pub fn set_task_queue_type(&mut self, value: TaskQueueType)
Sets task_queue_type to the provided enum value.
Trait Implementations§
Source§impl Clone for UpdateTaskQueueConfigRequest
impl Clone for UpdateTaskQueueConfigRequest
Source§fn clone(&self) -> UpdateTaskQueueConfigRequest
fn clone(&self) -> UpdateTaskQueueConfigRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateTaskQueueConfigRequest
impl Debug for UpdateTaskQueueConfigRequest
Source§impl Message for UpdateTaskQueueConfigRequest
impl Message for UpdateTaskQueueConfigRequest
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 UpdateTaskQueueConfigRequest
impl Name for UpdateTaskQueueConfigRequest
Source§const NAME: &'static str = "UpdateTaskQueueConfigRequest"
const NAME: &'static str = "UpdateTaskQueueConfigRequest"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "temporal.api.workflowservice.v1"
const PACKAGE: &'static str = "temporal.api.workflowservice.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 UpdateTaskQueueConfigRequest
impl PartialEq for UpdateTaskQueueConfigRequest
Source§fn eq(&self, other: &UpdateTaskQueueConfigRequest) -> bool
fn eq(&self, other: &UpdateTaskQueueConfigRequest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateTaskQueueConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateTaskQueueConfigRequest
impl RefUnwindSafe for UpdateTaskQueueConfigRequest
impl Send for UpdateTaskQueueConfigRequest
impl Sync for UpdateTaskQueueConfigRequest
impl Unpin for UpdateTaskQueueConfigRequest
impl UnsafeUnpin for UpdateTaskQueueConfigRequest
impl UnwindSafe for UpdateTaskQueueConfigRequest
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<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