pub struct Authorization {Show 15 fields
pub id: i32,
pub url: String,
pub scopes: Option<Vec<String>>,
pub token: String,
pub token_last_eight: Option<String>,
pub hashed_token: Option<String>,
pub app: Box<AuthorizationApp>,
pub note: Option<String>,
pub note_url: Option<String>,
pub updated_at: String,
pub created_at: String,
pub fingerprint: Option<String>,
pub user: Option<Option<Box<NullableSimpleUser>>>,
pub installation: Option<Option<Box<NullableScopedInstallation>>>,
pub expires_at: Option<String>,
}
Expand description
Authorization : The authorization for an OAuth app, GitHub App, or a Personal Access Token.
Fields§
§id: i32
§url: String
§scopes: Option<Vec<String>>
A list of scopes that this authorization is in.
token: String
§token_last_eight: Option<String>
§hashed_token: Option<String>
§app: Box<AuthorizationApp>
§note: Option<String>
§note_url: Option<String>
§updated_at: String
§created_at: String
§fingerprint: Option<String>
§user: Option<Option<Box<NullableSimpleUser>>>
§installation: Option<Option<Box<NullableScopedInstallation>>>
§expires_at: Option<String>
Implementations§
Source§impl Authorization
impl Authorization
Sourcepub fn new(
id: i32,
url: String,
scopes: Option<Vec<String>>,
token: String,
token_last_eight: Option<String>,
hashed_token: Option<String>,
app: AuthorizationApp,
note: Option<String>,
note_url: Option<String>,
updated_at: String,
created_at: String,
fingerprint: Option<String>,
expires_at: Option<String>,
) -> Authorization
pub fn new( id: i32, url: String, scopes: Option<Vec<String>>, token: String, token_last_eight: Option<String>, hashed_token: Option<String>, app: AuthorizationApp, note: Option<String>, note_url: Option<String>, updated_at: String, created_at: String, fingerprint: Option<String>, expires_at: Option<String>, ) -> Authorization
The authorization for an OAuth app, GitHub App, or a Personal Access Token.
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Authorization
impl Debug for Authorization
Source§impl Default for Authorization
impl Default for Authorization
Source§fn default() -> Authorization
fn default() -> Authorization
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Authorization
impl<'de> Deserialize<'de> for Authorization
Source§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
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
Source§impl Serialize for Authorization
impl Serialize for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more