pub enum OperationKind {
Get,
Head,
Delete,
Insert,
Unknown,
}Expand description
The kind of a batch operation.
Kinds that this version does not know deserialize and convert from names as
OperationKind::Unknown, so that a client can still read results of operations added to the
server later. Names are matched case-sensitively.
use objectstore_types::batch::OperationKind;
let kind: OperationKind = serde_json::from_str(r#""copy""#)?;
assert_eq!(kind, OperationKind::Unknown);
assert_eq!(OperationKind::from("insert"), OperationKind::Insert);Variants§
Get
Reads an object and its metadata.
Head
Reads the metadata of an object.
Delete
Deletes an object.
Insert
Stores an object.
Unknown
A kind that this version does not know.
Only produced when reading a kind name. It serializes as "unknown".
Implementations§
Trait Implementations§
Source§impl Clone for OperationKind
impl Clone for OperationKind
impl Copy for OperationKind
Source§impl Debug for OperationKind
impl Debug for OperationKind
Source§impl<'de> Deserialize<'de> for OperationKind
impl<'de> Deserialize<'de> for OperationKind
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 OperationKind
Source§impl From<&str> for OperationKind
impl From<&str> for OperationKind
Source§impl PartialEq for OperationKind
impl PartialEq for OperationKind
Source§impl Serialize for OperationKind
impl Serialize for OperationKind
impl StructuralPartialEq for OperationKind
Auto Trait Implementations§
impl Freeze for OperationKind
impl RefUnwindSafe for OperationKind
impl Send for OperationKind
impl Sync for OperationKind
impl Unpin for OperationKind
impl UnsafeUnpin for OperationKind
impl UnwindSafe for OperationKind
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