pub struct AllocationExplainRequestBodyJson {
pub primary: Option<bool>,
pub current_node: Option<String>,
pub shard: Option<u32>,
pub index: Option<String>,
}Expand description
AllocationExplainRequestBodyJson The index, shard, and primary flag for which to generate an explanation. Leave this empty to generate an explanation for the first unassigned shard.
Fields§
§primary: Option<bool>When true, returns a routing explanation for the primary shard based on the node ID.
current_node: Option<String>Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node.
shard: Option<u32>Specifies the ID of the shard that you would like an explanation for.
index: Option<String>Implementations§
Source§impl AllocationExplainRequestBodyJson
impl AllocationExplainRequestBodyJson
Sourcepub fn new() -> AllocationExplainRequestBodyJson
pub fn new() -> AllocationExplainRequestBodyJson
The index, shard, and primary flag for which to generate an explanation. Leave this empty to generate an explanation for the first unassigned shard.
Trait Implementations§
Source§impl Clone for AllocationExplainRequestBodyJson
impl Clone for AllocationExplainRequestBodyJson
Source§fn clone(&self) -> AllocationExplainRequestBodyJson
fn clone(&self) -> AllocationExplainRequestBodyJson
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 Default for AllocationExplainRequestBodyJson
impl Default for AllocationExplainRequestBodyJson
Source§fn default() -> AllocationExplainRequestBodyJson
fn default() -> AllocationExplainRequestBodyJson
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllocationExplainRequestBodyJson
impl<'de> Deserialize<'de> for AllocationExplainRequestBodyJson
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 AllocationExplainRequestBodyJson
impl PartialEq for AllocationExplainRequestBodyJson
Source§fn eq(&self, other: &AllocationExplainRequestBodyJson) -> bool
fn eq(&self, other: &AllocationExplainRequestBodyJson) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AllocationExplainRequestBodyJson
Auto Trait Implementations§
impl Freeze for AllocationExplainRequestBodyJson
impl RefUnwindSafe for AllocationExplainRequestBodyJson
impl Send for AllocationExplainRequestBodyJson
impl Sync for AllocationExplainRequestBodyJson
impl Unpin for AllocationExplainRequestBodyJson
impl UnsafeUnpin for AllocationExplainRequestBodyJson
impl UnwindSafe for AllocationExplainRequestBodyJson
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