pub struct OrganizationProgrammaticAccessGrant {
pub id: i32,
pub owner: Box<SimpleUser>,
pub repository_selection: RepositorySelection,
pub repositories_url: String,
pub permissions: Box<OrganizationProgrammaticAccessGrantRequestPermissions>,
pub access_granted_at: String,
pub token_expired: bool,
pub token_expires_at: Option<String>,
pub token_last_used_at: Option<String>,
}
Expand description
OrganizationProgrammaticAccessGrant : Minimal representation of an organization programmatic access grant for enumerations
Fields§
§id: i32
Unique identifier of the fine-grained personal access token. The pat_id
used to get details about an approved fine-grained personal access token.
owner: Box<SimpleUser>
§repository_selection: RepositorySelection
Type of repository selection requested.
repositories_url: String
URL to the list of repositories the fine-grained personal access token can access. Only follow when repository_selection
is subset
.
permissions: Box<OrganizationProgrammaticAccessGrantRequestPermissions>
§access_granted_at: String
Date and time when the fine-grained personal access token was approved to access the organization.
token_expired: bool
Whether the associated fine-grained personal access token has expired.
token_expires_at: Option<String>
Date and time when the associated fine-grained personal access token expires.
token_last_used_at: Option<String>
Date and time when the associated fine-grained personal access token was last used for authentication.
Implementations§
Source§impl OrganizationProgrammaticAccessGrant
impl OrganizationProgrammaticAccessGrant
Sourcepub fn new(
id: i32,
owner: SimpleUser,
repository_selection: RepositorySelection,
repositories_url: String,
permissions: OrganizationProgrammaticAccessGrantRequestPermissions,
access_granted_at: String,
token_expired: bool,
token_expires_at: Option<String>,
token_last_used_at: Option<String>,
) -> OrganizationProgrammaticAccessGrant
pub fn new( id: i32, owner: SimpleUser, repository_selection: RepositorySelection, repositories_url: String, permissions: OrganizationProgrammaticAccessGrantRequestPermissions, access_granted_at: String, token_expired: bool, token_expires_at: Option<String>, token_last_used_at: Option<String>, ) -> OrganizationProgrammaticAccessGrant
Minimal representation of an organization programmatic access grant for enumerations
Trait Implementations§
Source§impl Clone for OrganizationProgrammaticAccessGrant
impl Clone for OrganizationProgrammaticAccessGrant
Source§fn clone(&self) -> OrganizationProgrammaticAccessGrant
fn clone(&self) -> OrganizationProgrammaticAccessGrant
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for OrganizationProgrammaticAccessGrant
impl Default for OrganizationProgrammaticAccessGrant
Source§fn default() -> OrganizationProgrammaticAccessGrant
fn default() -> OrganizationProgrammaticAccessGrant
Source§impl<'de> Deserialize<'de> for OrganizationProgrammaticAccessGrant
impl<'de> Deserialize<'de> for OrganizationProgrammaticAccessGrant
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>,
Source§impl PartialEq for OrganizationProgrammaticAccessGrant
impl PartialEq for OrganizationProgrammaticAccessGrant
Source§fn eq(&self, other: &OrganizationProgrammaticAccessGrant) -> bool
fn eq(&self, other: &OrganizationProgrammaticAccessGrant) -> bool
self
and other
values to be equal, and is used by ==
.