pub trait RequestSigner: Send + Sync {
// Required methods
fn sign(&self, req: SignInput<'_>) -> Result<SignOutput, SignError>;
fn algorithm_version(&self) -> u8;
}Expand description
Sign a single outbound request. The body stays plaintext; the impl
returns the headers the caller must merge onto the outbound
reqwest::RequestBuilder.
Required Methods§
fn sign(&self, req: SignInput<'_>) -> Result<SignOutput, SignError>
Sourcefn algorithm_version(&self) -> u8
fn algorithm_version(&self) -> u8
One-byte selector identifying which signing scheme the impl
emits. 0 is reserved for UnavailableSigner; real algorithms
start at 1.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".