Enum oauth2::client_type::ClientType [] [src]

pub enum ClientType {
    ConfidentialClient,
    PublicClient,
}

Client Type, either 'confidential' or 'public'.

See RFC 6749 Section 2.2. In particular:

  • If the client cannot be trusted with secrets, it is 'public'. This usually includes all clients in end-user hands like javascript ones, but strictly speaking it depends on your security model.

Variants

ConfidentialClient

Client that can confidentially store secrets

PublicClient

Client that is not trusted to confidentially store secrets

Trait Implementations

impl Debug for ClientType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for ClientType
[src]

impl PartialEq for ClientType
[src]

fn eq(&self, __arg_0: &ClientType) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Copy for ClientType
[src]

impl Clone for ClientType
[src]

fn clone(&self) -> ClientType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for ClientType
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.