pub struct AuthenticationToken {
pub token: String,
pub expires_at: String,
pub permissions: Option<Value>,
pub repositories: Option<Vec<Repository>>,
pub single_file: Option<Option<String>>,
pub repository_selection: Option<RepositorySelection>,
}
Expand description
AuthenticationToken : Authentication Token
Fields§
§token: String
The token used for authentication
expires_at: String
The time this token expires
permissions: Option<Value>
§repositories: Option<Vec<Repository>>
The repositories this token has access to
single_file: Option<Option<String>>
§repository_selection: Option<RepositorySelection>
Describe whether all repositories have been selected or there’s a selection involved
Implementations§
Source§impl AuthenticationToken
impl AuthenticationToken
Sourcepub fn new(token: String, expires_at: String) -> AuthenticationToken
pub fn new(token: String, expires_at: String) -> AuthenticationToken
Authentication Token
Trait Implementations§
Source§impl Clone for AuthenticationToken
impl Clone for AuthenticationToken
Source§fn clone(&self) -> AuthenticationToken
fn clone(&self) -> AuthenticationToken
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 AuthenticationToken
impl Debug for AuthenticationToken
Source§impl Default for AuthenticationToken
impl Default for AuthenticationToken
Source§fn default() -> AuthenticationToken
fn default() -> AuthenticationToken
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthenticationToken
impl<'de> Deserialize<'de> for AuthenticationToken
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 AuthenticationToken
impl PartialEq for AuthenticationToken
Source§impl Serialize for AuthenticationToken
impl Serialize for AuthenticationToken
impl StructuralPartialEq for AuthenticationToken
Auto Trait Implementations§
impl Freeze for AuthenticationToken
impl RefUnwindSafe for AuthenticationToken
impl Send for AuthenticationToken
impl Sync for AuthenticationToken
impl Unpin for AuthenticationToken
impl UnwindSafe for AuthenticationToken
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