pub struct SecretEntry {
pub shared: String,
pub private: BTreeMap<String, String>,
pub grouped: BTreeMap<String, String>,
}Fields§
Shared value encrypted to all recipients (the implicit everyone group).
Empty when the secret’s base group is a named group instead.
private: BTreeMap<String, String>Private per-recipient values: pubkey → encrypted value (encrypted to that
pubkey only). This is the me tier — a singleton group of one recipient.
Serialized as scoped for on-disk compatibility with vaults written
before the tier was renamed; the wire format is unchanged.
grouped: BTreeMap<String, String>Named-group values: group name → encrypted value (encrypted to that
group’s current members). A secret has at most one base group, so this
map holds at most one entry, but it is keyed by name so the integrity MAC
and merge driver can treat it uniformly with scoped. Group names are
plaintext (like key names); group membership lives in the encrypted meta.
Trait Implementations§
Source§impl Clone for SecretEntry
impl Clone for SecretEntry
Source§fn clone(&self) -> SecretEntry
fn clone(&self) -> SecretEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecretEntry
impl Debug for SecretEntry
Source§impl Default for SecretEntry
impl Default for SecretEntry
Source§fn default() -> SecretEntry
fn default() -> SecretEntry
Source§impl<'de> Deserialize<'de> for SecretEntry
impl<'de> Deserialize<'de> for SecretEntry
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>,
impl Eq for SecretEntry
Source§impl PartialEq for SecretEntry
impl PartialEq for SecretEntry
Source§fn eq(&self, other: &SecretEntry) -> bool
fn eq(&self, other: &SecretEntry) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SecretEntry
impl Serialize for SecretEntry
impl StructuralPartialEq for SecretEntry
Auto Trait Implementations§
impl Freeze for SecretEntry
impl RefUnwindSafe for SecretEntry
impl Send for SecretEntry
impl Sync for SecretEntry
impl Unpin for SecretEntry
impl UnsafeUnpin for SecretEntry
impl UnwindSafe for SecretEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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