Skip to main content

RequestSigner

Trait RequestSigner 

Source
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§

Source

fn sign(&self, req: SignInput<'_>) -> Result<SignOutput, SignError>

Source

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".

Implementors§