#[non_exhaustive]pub enum Operation {
Info,
CreateDir,
Read,
Write,
Copy,
Compose,
Rename,
Restore,
Stat,
Delete,
List,
Presign,
}Expand description
Identifies the operation being performed.
Most variants map to methods on the Access trait, although some names
differ to improve readability.
An operation might have different meanings and costs depending on a storage service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Info
Operation to retrieve information about the specified storage services.
CreateDir
Operation to create a directory.
Read
Operation to read a file.
Write
Operation to write to a file.
Copy
Operation to copy a file.
Compose
Operation to compose multiple files into one file.
Rename
Operation to rename a file.
Restore
Operation to restore a file.
Stat
Operation to stat a file or a directory.
Delete
Operation to delete files.
List
Operation to get the next file from the list.
Presign
Operation to generate a presigned URL.
Implementations§
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.