Struct bonsaidb::keystorage::s3::aws_sdk_s3::presigning::PresigningConfig
pub struct PresigningConfig { /* private fields */ }
Expand description
Presigning config values required for creating a presigned request.
Implementations§
§impl PresigningConfig
impl PresigningConfig
pub fn expires_in(
expires_in: Duration
) -> Result<PresigningConfig, PresigningConfigError>
pub fn expires_in( expires_in: Duration ) -> Result<PresigningConfig, PresigningConfigError>
Creates a PresigningConfig
with the given expires_in
duration.
The expires_in
duration is the total amount of time the presigned request should
be valid for. Other config values are defaulted.
Credential expiration time takes priority over the expires_in
value.
If the credentials used to sign the request expire before the presigned request is
set to expire, then the presigned request will become invalid.
pub fn builder() -> PresigningConfigBuilder
pub fn builder() -> PresigningConfigBuilder
Creates a new builder for creating a PresigningConfig
.
pub fn expires(&self) -> Duration
pub fn expires(&self) -> Duration
Returns the amount of time the presigned request should be valid for.
pub fn start_time(&self) -> SystemTime
pub fn start_time(&self) -> SystemTime
Returns the start time. The presigned request will be valid between this and the end
time produced by adding the expires()
value to it.
Trait Implementations§
§impl Clone for PresigningConfig
impl Clone for PresigningConfig
§fn clone(&self) -> PresigningConfig
fn clone(&self) -> PresigningConfig
Returns a copy 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 RefUnwindSafe for PresigningConfig
impl Send for PresigningConfig
impl Sync for PresigningConfig
impl Unpin for PresigningConfig
impl UnwindSafe for PresigningConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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