pub struct RepoSecret(/* private fields */);Expand description
A 32-byte random secret used for shard path hashing (NOT an encryption key).
Distinct from SecretKey (derived encryption key) and RepoKey (root
encryption key). Used as HMAC-PRF input: hash(repo_secret || path) → shard assignment. Each repository generates its own RepoSecret at
init time; it is stored inside MetadataBundle.
Implementations§
Trait Implementations§
Source§impl Clone for RepoSecret
impl Clone for RepoSecret
Source§fn clone(&self) -> RepoSecret
fn clone(&self) -> RepoSecret
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 RepoSecret
impl Debug for RepoSecret
Source§impl<'de> Deserialize<'de> for RepoSecret
impl<'de> Deserialize<'de> for RepoSecret
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 RepoSecret
impl PartialEq for RepoSecret
Source§impl Serialize for RepoSecret
impl Serialize for RepoSecret
impl Copy for RepoSecret
impl Eq for RepoSecret
impl StructuralPartialEq for RepoSecret
Auto Trait Implementations§
impl Freeze for RepoSecret
impl RefUnwindSafe for RepoSecret
impl Send for RepoSecret
impl Sync for RepoSecret
impl Unpin for RepoSecret
impl UnsafeUnpin for RepoSecret
impl UnwindSafe for RepoSecret
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