pub struct GitIdentity {
pub name: String,
pub email: String,
pub signing_key: Option<String>,
}Fields§
§name: String§email: String§signing_key: Option<String>Implementations§
Source§impl GitIdentity
impl GitIdentity
Sourcepub fn from_git_config() -> Result<Self, String>
pub fn from_git_config() -> Result<Self, String>
Auto-detect identity from the current git config.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Fingerprint for this identity (used as a stable session seed).
Trait Implementations§
Source§impl Clone for GitIdentity
impl Clone for GitIdentity
Source§fn clone(&self) -> GitIdentity
fn clone(&self) -> GitIdentity
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 GitIdentity
impl Debug for GitIdentity
Source§impl<'de> Deserialize<'de> for GitIdentity
impl<'de> Deserialize<'de> for GitIdentity
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 GitIdentity
impl RefUnwindSafe for GitIdentity
impl Send for GitIdentity
impl Sync for GitIdentity
impl Unpin for GitIdentity
impl UnsafeUnpin for GitIdentity
impl UnwindSafe for GitIdentity
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