pub struct Operation {
pub id: Uuid,
pub class: OperationClass,
pub status: String,
pub status_code: u16,
pub resources: Value,
pub metadata: Option<Value>,
pub may_cancel: bool,
pub err: Option<String>,
}Expand description
An Incus asynchronous operation - see
https://linuxcontainers.org/incus/docs/main/rest-api/. resources and
metadata stay untyped (serde_json::Value) because their shape varies
per operation kind; the well-known top-level fields are fully typed.
Fields§
§id: Uuid§class: OperationClass§status: String§status_code: u16§resources: Value§metadata: Option<Value>§may_cancel: bool§err: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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