Struct tame_gcs::signed_url::SignedUrlOptional[][src]

pub struct SignedUrlOptional<'a> {
    pub method: Method,
    pub duration: Duration,
    pub headers: HeaderMap,
    pub region: &'a str,
    pub query_params: Vec<(Cow<'a, str>, Cow<'a, str>)>,
}

Optional parameters that can be used to tweak url signing

Fields

method: Method

The HTTP method for the request to sign. Defaults to ‘GET’.

duration: Duration

The lifetime of the signed URL, as measured from the DateTime of the signed URL creation. Defaults to 1 hour.

headers: HeaderMap

Additional headers in the request

region: &'a str

The region where the resource for which the signed url is being created is for. Defaults to “auto”.

query_params: Vec<(Cow<'a, str>, Cow<'a, str>)>

Additional query paramters in the request

Trait Implementations

impl<'a> Default for SignedUrlOptional<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SignedUrlOptional<'a>

impl<'a> Send for SignedUrlOptional<'a>

impl<'a> Sync for SignedUrlOptional<'a>

impl<'a> Unpin for SignedUrlOptional<'a>

impl<'a> UnwindSafe for SignedUrlOptional<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.