pub struct Record {
pub number: u32,
pub version: u32,
pub unknown3: u32,
pub unknown5: u32,
pub key_data: Vec<u8>,
pub attributes: Vec<Option<Value>>,
}Fields§
§number: u32Record number, unique within the table.
version: u32The database’s commit version at the moment the record was written.
macOS stamps both records of an added item with the same value, so the
highest record version in a file equals its
Keychain::commit_version.
unknown3: u32Purpose unknown. 0 in every observed record except symmetric-key
records, where macOS writes 4.
unknown5: u32Purpose unknown; 0 in every observed record.
key_data: Vec<u8>The record’s data: an SSGP blob for password items, a key blob for key
records, a DbBlob for the metadata record.
attributes: Vec<Option<Value>>Attribute values, in the relation’s schema order. None is an absent
value, written as a zero offset.
Implementations§
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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