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 more