Skip to main content

ExchangeAuth

Trait ExchangeAuth 

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

Source

fn sign_request( &self, credentials: &Credentials, req: &mut AuthRequest<'_>, ) -> ExchangeResult<()>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§