Struct swagger::auth::Authorization [] [src]

pub struct Authorization {
    pub subject: String,
    pub scopes: Scopes,
    pub issuer: Option<String>,
}

Storage of authorization parameters for an incoming request, used for REST API authorization.

Fields

Subject for which authorization is granted (i.e., what may be accessed.)

Scopes for which authorization is granted (i.e., what types of access are permitted).

Identity of the party to whom authorization was granted, if available (i.e., who is responsible for the access).

In an OAuth environment, this is the identity of the client which issued an authorization request to the resource owner (end-user), and which has been directly authorized by the resource owner to access the protected resource. If the client delegates that authorization to another service (e.g., a proxy or other delegate), the issuer is still the original client which was authorized by the resource owner.

Trait Implementations

impl Clone for Authorization
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Authorization
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Authorization
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for Authorization

impl Sync for Authorization