#[non_exhaustive]pub struct PresigningConfigBuilder { /* private fields */ }Expand description
Builder used to create PresigningConfig.
Implementations§
Source§impl PresigningConfigBuilder
impl PresigningConfigBuilder
Sourcepub fn start_time(self, start_time: SystemTime) -> Self
pub fn start_time(self, start_time: SystemTime) -> Self
Sets the start time for the presigned request.
The request will start to be valid at this time, and will cease to be valid after
the end time, which can be determined by adding the expires_in duration to this
start time. If not specified, this will default to the current time.
Optional.
Sourcepub fn set_start_time(&mut self, start_time: Option<SystemTime>)
pub fn set_start_time(&mut self, start_time: Option<SystemTime>)
Sets the start time for the presigned request.
The request will start to be valid at this time, and will cease to be valid after
the end time, which can be determined by adding the expires_in duration to this
start time. If not specified, this will default to the current time.
Optional.
Sourcepub fn expires_in(self, expires_in: Duration) -> Self
pub fn expires_in(self, expires_in: Duration) -> Self
Sets how long the request should be valid after the start_time (which defaults
to the current time).
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.
Required.
Sourcepub fn set_expires_in(&mut self, expires_in: Option<Duration>)
pub fn set_expires_in(&mut self, expires_in: Option<Duration>)
Sets how long the request should be valid after the start_time (which defaults
to the current time).
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.
Required.
Sourcepub fn build(self) -> Result<PresigningConfig, PresigningConfigError>
pub fn build(self) -> Result<PresigningConfig, PresigningConfigError>
Builds the PresigningConfig. This will error if expires_in is not
given, or if it’s longer than one week.
Trait Implementations§
Source§impl Debug for PresigningConfigBuilder
impl Debug for PresigningConfigBuilder
Source§impl Default for PresigningConfigBuilder
impl Default for PresigningConfigBuilder
Source§fn default() -> PresigningConfigBuilder
fn default() -> PresigningConfigBuilder
Auto Trait Implementations§
impl Freeze for PresigningConfigBuilder
impl RefUnwindSafe for PresigningConfigBuilder
impl Send for PresigningConfigBuilder
impl Sync for PresigningConfigBuilder
impl Unpin for PresigningConfigBuilder
impl UnwindSafe for PresigningConfigBuilder
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
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>
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>
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