pub trait SigningExt: Sized {
// Required method
fn sign(&mut self, config: &SigningConfig) -> Result<(), SigningError>;
// Provided method
fn signed(self, config: &SigningConfig) -> Result<Self, SigningError> { ... }
}
Expand description
Import this trait to get access to access the signed
and sign
methods on all types implementing
ClientRequestLike
.
Required Methods§
Sourcefn sign(&mut self, config: &SigningConfig) -> Result<(), SigningError>
fn sign(&mut self, config: &SigningConfig) -> Result<(), SigningError>
Signs the request in-place according to the provided configuration.
Provided Methods§
Sourcefn signed(self, config: &SigningConfig) -> Result<Self, SigningError>
fn signed(self, config: &SigningConfig) -> Result<Self, SigningError>
Consumes the request and returns it signed according to the provided configuration.
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.