pub struct UtcTime(/* private fields */);Expand description
wrap of chrono::Utc
Implementations§
Source§impl UtcTime
impl UtcTime
pub fn new(datetime: DateTime<Utc>) -> Self
Sourcepub fn format_time(&self) -> String
pub fn format_time(&self) -> String
format date to ISO8601, like2023-09-10T08:26:43.296Z
Sourcepub fn aws_format_time(&self) -> String
pub fn aws_format_time(&self) -> String
format date to ISO8601, like20230910T082643Z
Used in S3 signatures.
Sourcepub fn aws_format_date(&self) -> String
pub fn aws_format_date(&self) -> String
format date to aws date.
Used in S3 signatures
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UtcTime
impl<'de> Deserialize<'de> for UtcTime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for UtcTime
impl PartialOrd for UtcTime
impl Copy for UtcTime
impl StructuralPartialEq for UtcTime
Auto Trait Implementations§
impl Freeze for UtcTime
impl RefUnwindSafe for UtcTime
impl Send for UtcTime
impl Sync for UtcTime
impl Unpin for UtcTime
impl UnwindSafe for UtcTime
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