pub enum PresignOp {
Get,
Put,
}Expand description
Operation a presigned URL is minted for.
Deliberately narrow — the two operations every backend supports. We
can add Delete or Head later if a concrete caller needs one.
Variants§
Get
Presigned download URL. The signed URL lets a third party GET
the object without backend credentials.
Put
Presigned upload URL. The signed URL lets a third party PUT
bytes at the key without backend credentials.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PresignOp
impl<'de> Deserialize<'de> for PresignOp
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 Copy for PresignOp
impl Eq for PresignOp
impl StructuralPartialEq for PresignOp
Auto Trait Implementations§
impl Freeze for PresignOp
impl RefUnwindSafe for PresignOp
impl Send for PresignOp
impl Sync for PresignOp
impl Unpin for PresignOp
impl UnsafeUnpin for PresignOp
impl UnwindSafe for PresignOp
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