pub struct CommandAllocatePrimaryAction {
pub index: String,
pub node: String,
pub accept_data_loss: bool,
pub shard: u32,
}Fields§
§index: String§node: String§accept_data_loss: boolIf a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true.
shard: u32Implementations§
Trait Implementations§
Source§impl Clone for CommandAllocatePrimaryAction
impl Clone for CommandAllocatePrimaryAction
Source§fn clone(&self) -> CommandAllocatePrimaryAction
fn clone(&self) -> CommandAllocatePrimaryAction
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 CommandAllocatePrimaryAction
impl Debug for CommandAllocatePrimaryAction
Source§impl Default for CommandAllocatePrimaryAction
impl Default for CommandAllocatePrimaryAction
Source§fn default() -> CommandAllocatePrimaryAction
fn default() -> CommandAllocatePrimaryAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandAllocatePrimaryAction
impl<'de> Deserialize<'de> for CommandAllocatePrimaryAction
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 PartialEq for CommandAllocatePrimaryAction
impl PartialEq for CommandAllocatePrimaryAction
Source§fn eq(&self, other: &CommandAllocatePrimaryAction) -> bool
fn eq(&self, other: &CommandAllocatePrimaryAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandAllocatePrimaryAction
Auto Trait Implementations§
impl Freeze for CommandAllocatePrimaryAction
impl RefUnwindSafe for CommandAllocatePrimaryAction
impl Send for CommandAllocatePrimaryAction
impl Sync for CommandAllocatePrimaryAction
impl Unpin for CommandAllocatePrimaryAction
impl UnsafeUnpin for CommandAllocatePrimaryAction
impl UnwindSafe for CommandAllocatePrimaryAction
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