pub struct RebalanceJob {
pub job_id: String,
pub status: String,
pub shards_to_move: usize,
pub shards_moved: usize,
pub last_checkpoint_node: Option<String>,
pub message: String,
}Expand description
Job descriptor returned by POST /cluster/rebalance.
Server contract: {job_id, status, shards_to_move, shards_moved, last_checkpoint_node, message}.
Fields§
§job_id: StringOpaque job id.
status: StringLifecycle state: "running", "paused", "completed", "failed".
shards_to_move: usizeTotal shards that need to move.
shards_moved: usizeShards moved so far.
last_checkpoint_node: Option<String>Node-id of the last checkpoint.
message: StringHuman-readable status message.
Trait Implementations§
Source§impl Clone for RebalanceJob
impl Clone for RebalanceJob
Source§fn clone(&self) -> RebalanceJob
fn clone(&self) -> RebalanceJob
Returns a duplicate of the value. Read more
1.0.0 · 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 RebalanceJob
impl Debug for RebalanceJob
Source§impl<'de> Deserialize<'de> for RebalanceJob
impl<'de> Deserialize<'de> for RebalanceJob
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
Auto Trait Implementations§
impl Freeze for RebalanceJob
impl RefUnwindSafe for RebalanceJob
impl Send for RebalanceJob
impl Sync for RebalanceJob
impl Unpin for RebalanceJob
impl UnsafeUnpin for RebalanceJob
impl UnwindSafe for RebalanceJob
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
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>
Wrap the input message
T in a tonic::Request