pub struct ResultPart {
pub status: u16,
pub kind: Option<OperationKind>,
pub key: Option<String>,
pub metadata: Option<ReadMetadata>,
pub error: Option<ApiErrorResponse>,
}Expand description
The JSON body of a result part, which reports the outcome of one operation.
Unknown fields are ignored when deserializing.
Fields§
§status: u16The HTTP status code of the operation.
kind: Option<OperationKind>The kind of the operation. Absent if the operation failed with an error.
key: Option<String>The key of the object. Absent if the operation failed with an error.
metadata: Option<ReadMetadata>The metadata of the object, for a successful get or head.
error: Option<ApiErrorResponse>The error, for a failed operation.
Trait Implementations§
Source§impl Clone for ResultPart
impl Clone for ResultPart
Source§impl Debug for ResultPart
impl Debug for ResultPart
Source§impl Default for ResultPart
impl Default for ResultPart
Source§impl<'de> Deserialize<'de> for ResultPart
impl<'de> Deserialize<'de> for ResultPart
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
impl Eq for ResultPart
Source§impl PartialEq for ResultPart
impl PartialEq for ResultPart
Source§impl Serialize for ResultPart
impl Serialize for ResultPart
impl StructuralPartialEq for ResultPart
Auto Trait Implementations§
impl Freeze for ResultPart
impl RefUnwindSafe for ResultPart
impl Send for ResultPart
impl Sync for ResultPart
impl Unpin for ResultPart
impl UnsafeUnpin for ResultPart
impl UnwindSafe for ResultPart
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