pub trait OSSAction<'a> {
const METHOD: Method;
// Required methods
fn query_mut(&mut self) -> &mut Map<'a>;
fn headers_mut(&mut self) -> &mut Map<'a>;
fn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url;
// Provided method
fn sign(&self, expires_in: Duration) -> Url { ... }
}Expand description
A request which can be signed
Required Associated Constants§
Required Methods§
Sourcefn query_mut(&mut self) -> &mut Map<'a>
fn query_mut(&mut self) -> &mut Map<'a>
Get a mutable reference to the query string of this action
Sourcefn headers_mut(&mut self) -> &mut Map<'a>
fn headers_mut(&mut self) -> &mut Map<'a>
Get a mutable reference to the signed headers of this action
Headers specified here must also be present in the final request, with the same value specified, otherwise the OSS API will return an error.
Sourcefn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url
fn sign_with_time(&self, expires_in: Duration, time: &OffsetDateTime) -> Url
Takes the time at which the URL should be signed Used for testing purposes
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.