pub struct AuthorHashKey { /* private fields */ }Available on crate feature
vcs-git only.Expand description
A secret key for the opt-in keyed author-identity hashing
(--author-hash-key, issue #956).
A newtype for two reasons: it keeps the key material out of any
derived Debug (the impl below redacts it, so the secret never lands
in Options’ debug output or a log), and it
gives the non-empty validation one enforced home — an
AuthorHashKey cannot hold a zero-length key.
Implementations§
Trait Implementations§
Source§impl Clone for AuthorHashKey
impl Clone for AuthorHashKey
Source§fn clone(&self) -> AuthorHashKey
fn clone(&self) -> AuthorHashKey
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 moreAuto Trait Implementations§
impl Freeze for AuthorHashKey
impl RefUnwindSafe for AuthorHashKey
impl Send for AuthorHashKey
impl Sync for AuthorHashKey
impl Unpin for AuthorHashKey
impl UnsafeUnpin for AuthorHashKey
impl UnwindSafe for AuthorHashKey
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