pub enum S3DateTime {
Now,
UnixTimestamp(i64),
}Expand description
Used to specify the datetime to use when building the headers. Defaults to
S3DateTime::Now which will use the current time when the headers are built.
Note: This is designed for future expansion or variations of plain timestamps.
Variants§
Implementations§
Source§impl S3DateTime
impl S3DateTime
pub fn get_offset_datetime(&self) -> OffsetDateTime
Trait Implementations§
Source§impl Clone for S3DateTime
impl Clone for S3DateTime
Source§fn clone(&self) -> S3DateTime
fn clone(&self) -> S3DateTime
Returns a duplicate 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 moreSource§impl Debug for S3DateTime
impl Debug for S3DateTime
Source§impl Default for S3DateTime
impl Default for S3DateTime
Source§fn default() -> S3DateTime
fn default() -> S3DateTime
Returns the “default value” for a type. Read more
impl Copy for S3DateTime
Auto Trait Implementations§
impl Freeze for S3DateTime
impl RefUnwindSafe for S3DateTime
impl Send for S3DateTime
impl Sync for S3DateTime
impl Unpin 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