pub trait ExchangeAuth: Send + Sync {
// Required method
fn sign_request(
&self,
credentials: &Credentials,
req: &mut AuthRequest<'_>,
) -> ExchangeResult<()>;
// Provided method
fn signature_location(&self) -> SignatureLocation { ... }
}Expand description
Exchange auth trait — each exchange implements its own signing logic.
This is the connector-internal trait for request signing. It is NOT exposed in the public API surface.
Required Methods§
fn sign_request( &self, credentials: &Credentials, req: &mut AuthRequest<'_>, ) -> ExchangeResult<()>
Provided Methods§
fn signature_location(&self) -> SignatureLocation
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".