Trait RequestCredentials

Source
pub trait RequestCredentials:
    Debug
    + Default
    + Clone
    + Send
    + Sync
    + 'static
    + Serialize {
    type AgentCredentials: AgentCredentials;
    type ClientCredentials: ClientCredentials;
    type IssuerCredentials: IssuerCredentials;

    // Required methods
    fn of_agent(&self) -> Option<&Self::AgentCredentials>;
    fn of_client(&self) -> Option<&Self::ClientCredentials>;
    fn of_issuer(&self) -> Option<&Self::IssuerCredentials>;
}
Expand description

A trait to represent request credentials.

Required Associated Types§

Source

type AgentCredentials: AgentCredentials

Type of the agent credentials.

Source

type ClientCredentials: ClientCredentials

Type of the client credentials.

Source

type IssuerCredentials: IssuerCredentials

Type of the issuer credentials.

Required Methods§

Source

fn of_agent(&self) -> Option<&Self::AgentCredentials>

Get agent credentials.

Source

fn of_client(&self) -> Option<&Self::ClientCredentials>

Get client credentials.

Source

fn of_issuer(&self) -> Option<&Self::IssuerCredentials>

Get issuer credentials.

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.

Implementors§