pub enum S3DocumentRef {
Presigned {
presigned_url: String,
},
Credentials {
bucket: String,
key: String,
region: Option<String>,
access_key_id: String,
secret_access_key: String,
session_token: Option<String>,
},
}Expand description
S3 document reference — either a pre-signed URL or bucket/key with temp credentials.
Variants§
Presigned
Pre-signed URL — server just fetches it.
Credentials
Bucket + key with temporary credentials.
Trait Implementations§
Source§impl Clone for S3DocumentRef
impl Clone for S3DocumentRef
Source§fn clone(&self) -> S3DocumentRef
fn clone(&self) -> S3DocumentRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for S3DocumentRef
impl Debug for S3DocumentRef
Source§impl<'de> Deserialize<'de> for S3DocumentRef
impl<'de> Deserialize<'de> for S3DocumentRef
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
Auto Trait Implementations§
impl Freeze for S3DocumentRef
impl RefUnwindSafe for S3DocumentRef
impl Send for S3DocumentRef
impl Sync for S3DocumentRef
impl Unpin for S3DocumentRef
impl UnsafeUnpin for S3DocumentRef
impl UnwindSafe for S3DocumentRef
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