Struct octorust::types::Authorization [−][src]
pub struct Authorization {}Show 14 fields
pub app: App, pub created_at: Option<DateTime<Utc>>, pub fingerprint: String, pub hashed_token: String, pub id: i64, pub installation: Option<ScopedInstallation>, pub note: String, pub note_url: String, pub scopes: Vec<String>, pub token: String, pub token_last_eight: String, pub updated_at: Option<DateTime<Utc>>, pub url: String, pub user: Option<SimpleUser>,
Expand description
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
Fields
app: App
created_at: Option<DateTime<Utc>>
fingerprint: String
hashed_token: String
id: i64
installation: Option<ScopedInstallation>
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
note: String
note_url: String
scopes: Vec<String>
The list of events for the GitHub app
token: String
token_last_eight: String
updated_at: Option<DateTime<Utc>>
url: String
user: Option<SimpleUser>
Simple User
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more