pub struct ScaleAssignment {
pub role: String,
pub indices: Vec<u32>,
}Expand description
One role-group entry within an InternalScaleRequest. Phase 2 ships
this; Phase 1 uses the legacy replicas field only.
Fields§
§role: StringRole name (e.g. "default", "primary", "read").
indices: Vec<u32>Replica indices within this role that the receiving node should ensure
exist locally. Each becomes a container {service}-{role}-{index}.
Trait Implementations§
Source§impl Clone for ScaleAssignment
impl Clone for ScaleAssignment
Source§fn clone(&self) -> ScaleAssignment
fn clone(&self) -> ScaleAssignment
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 ComposeSchema for ScaleAssignment
impl ComposeSchema for ScaleAssignment
Source§impl Debug for ScaleAssignment
impl Debug for ScaleAssignment
Source§impl<'de> Deserialize<'de> for ScaleAssignment
impl<'de> Deserialize<'de> for ScaleAssignment
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
Source§impl Serialize for ScaleAssignment
impl Serialize for ScaleAssignment
Auto Trait Implementations§
impl Freeze for ScaleAssignment
impl RefUnwindSafe for ScaleAssignment
impl Send for ScaleAssignment
impl Sync for ScaleAssignment
impl Unpin for ScaleAssignment
impl UnsafeUnpin for ScaleAssignment
impl UnwindSafe for ScaleAssignment
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