pub fn credential_scope_string(
datetime: &OffsetDateTime,
region: &str,
service: &str,
) -> StringExpand description
Generate an AWS scope string. This is used in the AWS authorization header. It is always YYYYMMDD’T’HHMMSS’Z’/region/service/aws4_request.
§Examples
use time::OffsetDateTime;
use common_s3_headers::aws_format::credential_scope_string;
let datetime = OffsetDateTime::from_unix_timestamp(0).unwrap();
let result = credential_scope_string(&datetime, "us-east-1", "s3");
assert_eq!(result, "19700101/us-east-1/s3/aws4_request");