pub struct IndexEntry {
pub id: String,
pub environment: String,
pub component: String,
pub key: String,
pub sensitivity: Sensitivity,
pub mode: RecordMode,
pub ref_scheme: Option<String>,
pub fingerprint: Option<String>,
pub created: String,
pub updated: String,
pub origin: String,
pub record_path: String,
}Expand description
One metadata row. Carries no value and only the truncated fingerprint (I12).
Fields§
§id: StringBlake3 storage id (also the index key).
environment: StringEnvironment segment.
component: StringComponent segment.
key: StringKey segment.
sensitivity: SensitivitySensitivity level.
mode: RecordModeLiteral or reference.
ref_scheme: Option<String>Provider scheme for references (e.g. azure-kv); None for literals.
fingerprint: Option<String>Truncated fingerprint of the value (§10.4); literals only, never full.
created: StringCreation timestamp (from the record).
updated: StringLast-update timestamp (from the record).
origin: StringOrigin vault label, e.g. global or projects/<name>.
record_path: StringPath of the backing .sec record.
Implementations§
Source§impl IndexEntry
impl IndexEntry
Sourcepub fn from_record(
id: &str,
record: &SecretRecord,
origin: &str,
record_path: &str,
) -> Self
pub fn from_record( id: &str, record: &SecretRecord, origin: &str, record_path: &str, ) -> Self
Derive a metadata entry from an opened record. The value is read only to compute the truncated fingerprint; it is not retained.
Sourcepub fn coordinate(&self) -> String
pub fn coordinate(&self) -> String
The canonical coordinate path <env>/<component>/<key> — derived, not
stored (it is exactly the three segment fields joined).
Trait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§fn clone(&self) -> IndexEntry
fn clone(&self) -> IndexEntry
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 IndexEntry
impl Debug for IndexEntry
Source§impl<'de> Deserialize<'de> for IndexEntry
impl<'de> Deserialize<'de> for IndexEntry
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>,
Source§impl PartialEq for IndexEntry
impl PartialEq for IndexEntry
Source§fn eq(&self, other: &IndexEntry) -> bool
fn eq(&self, other: &IndexEntry) -> bool
self and other values to be equal, and is used by ==.