pub struct PresignUrlReqeust {
pub expire: i64,
pub method: Method,
pub bucket: String,
pub host: Option<String>,
pub ssl: bool,
pub uri: String,
pub queries: Option<HashMap<String, String>>,
pub headers: Option<HashMap<String, String>>,
}Fields§
§expire: i64§method: Method§bucket: String§host: Option<String>§ssl: bool§uri: String§queries: Option<HashMap<String, String>>§headers: Option<HashMap<String, String>>Implementations§
Source§impl PresignUrlReqeust
impl PresignUrlReqeust
pub fn expire<T: Into<i64>>(self, value: T) -> Self
pub fn method<T: Into<Method>>(self, value: T) -> Self
pub fn bucket<T: Into<String>>(self, value: T) -> Self
pub fn host<T: Into<String>>(self, value: T) -> Self
pub fn ssl<T: Into<bool>>(self, value: T) -> Self
pub fn uri<T: Into<String>>(self, value: T) -> Self
pub fn queries<T: Into<HashMap<String, String>>>(self, value: T) -> Self
pub fn headers<T: Into<HashMap<String, String>>>(self, value: T) -> Self
pub fn get() -> Self
pub fn post() -> Self
pub fn put() -> Self
pub fn signature( &self, key: &str, data: &str, date: &str, region: &str, ) -> Result<String, Error>
Trait Implementations§
Source§impl Calculator<String> for PresignUrlReqeust
impl Calculator<String> for PresignUrlReqeust
Source§impl Debug for PresignUrlReqeust
impl Debug for PresignUrlReqeust
Source§impl Default for PresignUrlReqeust
impl Default for PresignUrlReqeust
Source§fn default() -> PresignUrlReqeust
fn default() -> PresignUrlReqeust
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PresignUrlReqeust
impl RefUnwindSafe for PresignUrlReqeust
impl Send for PresignUrlReqeust
impl Sync for PresignUrlReqeust
impl Unpin for PresignUrlReqeust
impl UnwindSafe for PresignUrlReqeust
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more