pub enum OperationResult {
Response(BatchOperationResponse),
Error(OperationError),
}
Expand description
Represents the result of a completed batch operation, which is either a response or an error.
Variants§
Response(BatchOperationResponse)
Successful operation result
Error(OperationError)
Failed operation result
Trait Implementations§
Source§impl Debug for OperationResult
impl Debug for OperationResult
Source§impl<'de> Deserialize<'de> for OperationResult
impl<'de> Deserialize<'de> for OperationResult
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 From<OperationResult> for Result<BatchOperationResponse, OperationError>
impl From<OperationResult> for Result<BatchOperationResponse, OperationError>
Source§fn from(operation: OperationResult) -> Self
fn from(operation: OperationResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationResult
impl RefUnwindSafe for OperationResult
impl Send for OperationResult
impl Sync for OperationResult
impl Unpin for OperationResult
impl UnwindSafe for OperationResult
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