pub struct OperationInfo {
pub id: String,
pub kind: String,
pub state: String,
pub user: Option<String>,
pub start_time: Option<String>,
pub finish_time: Option<String>,
pub suspended: bool,
}Expand description
One operation, as Client::list_operations reports it.
A subset of the cluster’s TOperation, in the spirit of JobInfo: enough
to recognise an operation and decide what to do about it. The document has a
great deal more in it — brief_spec, runtime_parameters, the whole
progress tree — and Client::get_operation is how to read that.
Fields§
§id: StringOperation ID, in the form every other command here expects.
kind: StringThe operation type — map, vanilla, sort, … — under the cluster’s
own key type, which is a keyword in Rust.
state: Stringrunning, completed, failed, aborted, pending, …
user: Option<String>Who started it.
start_time: Option<String>When it started, in the cluster’s ISO 8601 spelling.
finish_time: Option<String>When it finished; None while it has not.
suspended: boolWhether it is paused.
Worth having beside state, because a suspended operation still reports
running there.
Trait Implementations§
Source§impl Clone for OperationInfo
impl Clone for OperationInfo
Source§fn clone(&self) -> OperationInfo
fn clone(&self) -> OperationInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more