pub struct Authorization {
    pub status: Option<Status>,
    pub description: Option<String>,
    pub created_at: Option<String>,
    pub updated_at: Option<String>,
    pub org_id: String,
    pub permissions: Vec<Permission>,
    pub id: Option<String>,
    pub token: Option<String>,
    pub user_id: Option<String>,
    pub user: Option<String>,
    pub org: Option<String>,
    pub links: Option<AuthorizationAllOfLinks>,
}
Expand description

Authorization to create

Fields

status: Option<Status>

If inactive the token is inactive and requests using the token will be rejected.

description: Option<String>

A description of the token.

created_at: Option<String>

Auth created_at

updated_at: Option<String>

Auth updated_at

org_id: String

ID of org that authorization is scoped to.

permissions: Vec<Permission>

List of permissions for an auth. An auth must have at least one Permission.

id: Option<String>

Auth ID.

token: Option<String>

Passed via the Authorization Header and Token Authentication type.

user_id: Option<String>

ID of user that created and owns the token.

user: Option<String>

Name of user that created and owns the token.

org: Option<String>

Name of the org token is scoped to.

links: Option<AuthorizationAllOfLinks>

Links

Implementations

Returns an Authorization with the given orgID and permissions

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.