pub struct RepoKey(/* private fields */);Expand description
Thin wrapper for repository encryption keys (AES-256, 32 bytes).
Distinct from signing keys to prevent accidental misuse. Debug output is redacted for security. Does NOT serialize to avoid accidental key exposure — use explicit methods if serialization is needed.
Note: This type is NOT Copy because it implements Drop to zero out
memory when the key goes out of scope.
Implementations§
Trait Implementations§
impl Eq for RepoKey
impl StructuralPartialEq for RepoKey
Auto Trait Implementations§
impl Freeze for RepoKey
impl RefUnwindSafe for RepoKey
impl Send for RepoKey
impl Sync for RepoKey
impl Unpin for RepoKey
impl UnsafeUnpin for RepoKey
impl UnwindSafe for RepoKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more