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§
Sourcetype AgentCredentials: AgentCredentials
type AgentCredentials: AgentCredentials
Type of the agent credentials.
Sourcetype ClientCredentials: ClientCredentials
type ClientCredentials: ClientCredentials
Type of the client credentials.
Sourcetype IssuerCredentials: IssuerCredentials
type IssuerCredentials: IssuerCredentials
Type of the issuer credentials.
Required Methods§
Sourcefn of_agent(&self) -> Option<&Self::AgentCredentials>
fn of_agent(&self) -> Option<&Self::AgentCredentials>
Get agent credentials.
Sourcefn of_client(&self) -> Option<&Self::ClientCredentials>
fn of_client(&self) -> Option<&Self::ClientCredentials>
Get client credentials.
Sourcefn of_issuer(&self) -> Option<&Self::IssuerCredentials>
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.