pub trait S3Action<'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 S3 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§
Object Safety§
This trait is not object safe.