pub struct ItemMeta {
pub id: String,
pub path: PathBuf,
pub encrypted_zone: Option<String>,
pub plaintext_crypt_zone: Option<String>,
}Expand description
Lightweight item metadata available without authentication.
Walks .joy/items/, peeks each file: if it is a JOYCRYPT blob,
reads the zone name from the header without decrypting; if it is
plaintext YAML, parses just enough to extract the id and
crypt_zone fields. Used by joy crypt status / joy crypt ls /
joy auth to count and locate Crypt content without prompting
the user for a passphrase.
Fields§
§id: String§path: PathBuf§encrypted_zone: Option<String>§plaintext_crypt_zone: Option<String>crypt_zone field as parsed from the plaintext YAML; only populated when the file is plaintext.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemMeta
impl RefUnwindSafe for ItemMeta
impl Send for ItemMeta
impl Sync for ItemMeta
impl Unpin for ItemMeta
impl UnsafeUnpin for ItemMeta
impl UnwindSafe for ItemMeta
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