rusty-oss 0.2.1

Simple pure Rust Aliyun OSS Client following a Sans-IO approach
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use time::format_description::FormatItem;
use time::macros::format_description;

/// The format used by the `Date` header.
pub const ISO8601: &[FormatItem<'static>] =
    format_description!("[year][month][day]T[hour][minute][second]Z");

/// The format used by the `x-amz-date` header.
#[cfg(feature = "full")]
pub const ISO8601_EXT: &[FormatItem<'static>] =
    format_description!("[year]-[month]-[day]T[hour]:[minute]:[second]Z");

/// The format used by the `x-amz-date` header.
pub const YYYYMMDD: &[FormatItem<'static>] = format_description!("[year][month][day]");