pub struct GitCredential {
pub id: String,
pub name: String,
pub kind: GitCredentialKind,
}Expand description
Git authentication credential metadata.
The actual PAT or SSH key is stored separately as a [Secret] in the
git_credentials scope, keyed by id.
Fields§
§id: StringUnique identifier (UUID v4).
name: StringHuman-readable display label, e.g. "GitHub PAT for ci".
kind: GitCredentialKindWhether this credential is a personal access token or an SSH key.
Trait Implementations§
Source§impl Clone for GitCredential
impl Clone for GitCredential
Source§fn clone(&self) -> GitCredential
fn clone(&self) -> GitCredential
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitCredential
impl Debug for GitCredential
Source§impl<'de> Deserialize<'de> for GitCredential
impl<'de> Deserialize<'de> for GitCredential
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
Auto Trait Implementations§
impl Freeze for GitCredential
impl RefUnwindSafe for GitCredential
impl Send for GitCredential
impl Sync for GitCredential
impl Unpin for GitCredential
impl UnsafeUnpin for GitCredential
impl UnwindSafe for GitCredential
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