pub struct BatchOperation {
pub name: String,
pub metadata: Option<BatchOperationMetadata>,
pub done: Option<bool>,
pub error: Option<RpcStatus>,
pub response: Option<JsonValue>,
}Expand description
A long-running batch operation.
Fields§
§name: StringOperation name (batches/...), used as the batch id.
metadata: Option<BatchOperationMetadata>Metadata (state, counts, output).
done: Option<bool>Whether the operation finished.
error: Option<RpcStatus>Error of a failed operation.
response: Option<JsonValue>Response of a finished operation (same shape as metadata.output).
Trait Implementations§
Source§impl Clone for BatchOperation
impl Clone for BatchOperation
Source§fn clone(&self) -> BatchOperation
fn clone(&self) -> BatchOperation
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 BatchOperation
impl Debug for BatchOperation
Source§impl Default for BatchOperation
impl Default for BatchOperation
Source§fn default() -> BatchOperation
fn default() -> BatchOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatchOperation
impl<'de> Deserialize<'de> for BatchOperation
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 BatchOperation
impl PartialEq for BatchOperation
impl StructuralPartialEq for BatchOperation
Auto Trait Implementations§
impl Freeze for BatchOperation
impl RefUnwindSafe for BatchOperation
impl Send for BatchOperation
impl Sync for BatchOperation
impl Unpin for BatchOperation
impl UnsafeUnpin for BatchOperation
impl UnwindSafe for BatchOperation
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