pub struct PresignedArgs { /* private fields */ }Expand description
Custom request parameters for presigned URL
§param
- bucket_name: Name of the bucket.
- object_name: Object name in the bucket.
- expires: Expiry in seconds; defaults to 7 days.
- headers: Optional response_headers argument to specify response fields like date, size, type of file, data about server, etc.
- request_date: Optional request_date argument to specify a different request date. Default is current date.
- version_id: Version ID of the object.
- querys: Extra query parameters for advanced usage.
Implementations§
Source§impl PresignedArgs
impl PresignedArgs
pub fn new<T1: Into<String>, T2: Into<String>>( bucket_name: T1, object_name: T2, ) -> Self
pub fn region<T: Into<String>>(self, region: T) -> Self
pub fn version_id<T: Into<String>>(self, version_id: T) -> Self
pub fn regirequest_date(self, request_date: UtcTime) -> Self
pub fn expires(self, expires: usize) -> Self
pub fn headers(self, header: HeaderMap) -> Self
pub fn header<K>(self, key: K, value: &str) -> Selfwhere
K: IntoHeaderName,
pub fn querys(self, querys: QueryMap) -> Self
pub fn query<K: Into<String>, V: Into<String>>(self, key: K, value: V) -> Self
pub fn query_string(self, query_str: &str) -> Self
pub fn apply<F>(self, apply: F) -> Selfwhere
F: FnOnce(Self) -> Self,
Trait Implementations§
Source§impl Clone for PresignedArgs
impl Clone for PresignedArgs
Source§fn clone(&self) -> PresignedArgs
fn clone(&self) -> PresignedArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PresignedArgs
impl RefUnwindSafe for PresignedArgs
impl Send for PresignedArgs
impl Sync for PresignedArgs
impl Unpin for PresignedArgs
impl UnwindSafe for PresignedArgs
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