pub struct QueueAutoscalePolicyCommand {
pub stream: String,
pub worker: Option<AutoscalePolicyWire>,
pub membership: Option<MembershipAutoscalePolicyWire>,
}Expand description
Upsert queue autoscale policy for stream (Meta-Raft metadata entry).
Fields§
§stream: StringQueue stream these policies apply to.
worker: Option<AutoscalePolicyWire>Worker-group scaling policy (None leaves prior worker policy unchanged).
membership: Option<MembershipAutoscalePolicyWire>Cluster membership scaling policy (None leaves prior membership policy unchanged).
Trait Implementations§
Source§impl Clone for QueueAutoscalePolicyCommand
impl Clone for QueueAutoscalePolicyCommand
Source§fn clone(&self) -> QueueAutoscalePolicyCommand
fn clone(&self) -> QueueAutoscalePolicyCommand
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 QueueAutoscalePolicyCommand
impl Debug for QueueAutoscalePolicyCommand
Source§impl<'de> Deserialize<'de> for QueueAutoscalePolicyCommand
impl<'de> Deserialize<'de> for QueueAutoscalePolicyCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueueAutoscalePolicyCommand
impl StructuralPartialEq for QueueAutoscalePolicyCommand
Auto Trait Implementations§
impl Freeze for QueueAutoscalePolicyCommand
impl RefUnwindSafe for QueueAutoscalePolicyCommand
impl Send for QueueAutoscalePolicyCommand
impl Sync for QueueAutoscalePolicyCommand
impl Unpin for QueueAutoscalePolicyCommand
impl UnsafeUnpin for QueueAutoscalePolicyCommand
impl UnwindSafe for QueueAutoscalePolicyCommand
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