pub enum S3DateTime {
Now,
UnixTimestamp(i64),
Resolved(OffsetDateTime),
}Expand description
Specifies when a request is made. Used to derive the x-amz-date header and
the SigV4 credential scope’s date.
For production, use Now or UnixTimestamp.
The Resolved variant is produced internally by
get_headers after resolving the datetime once, so the date header and the
signing scope never diverge across a second boundary (see issue #2).
Variants§
Now
UnixTimestamp(i64)
Resolved(OffsetDateTime)
A pre-resolved datetime, used internally to avoid a second wall-clock read.
Implementations§
Source§impl S3DateTime
impl S3DateTime
pub fn get_offset_datetime(&self) -> OffsetDateTime
Trait Implementations§
Auto Trait Implementations§
impl Freeze for S3DateTime
impl RefUnwindSafe for S3DateTime
impl Send for S3DateTime
impl Sync for S3DateTime
impl Unpin for S3DateTime
impl UnsafeUnpin for S3DateTime
impl UnwindSafe for S3DateTime
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