pub struct NoteHeader {Show 18 fields
pub size: u32,
pub rrv_identifier: u32,
pub file_identifier: Timedate,
pub note_identifier: Timedate,
pub sequence_number: u32,
pub sequence_time: Timedate,
pub status_flags: u16,
pub note_class: u16,
pub modification_time: Timedate,
pub number_of_note_items: u16,
pub number_of_responses: u16,
pub non_summary_data_identifier: u32,
pub non_summary_data_size: u32,
pub access_time: Timedate,
pub creation_time: Timedate,
pub parent_note_identifier: u32,
pub folder_reference_count: u32,
pub folder_note_identifier: u32,
}Expand description
Parsed note header. Self-contained snapshot - the reader does not retain a reference into bucket bytes.
Fields§
§size: u32Total note size in bytes (header + item descriptors + item data).
rrv_identifier: u32RRV identifier the note was reached through. Local to one NSF.
file_identifier: TimedateFile identifier portion of the UNID (8 bytes).
note_identifier: TimedateNote identifier portion of the UNID (8 bytes). Together with
file_identifier this forms the 16-byte Universal Note ID
(UNID) which is globally unique across replicas.
sequence_number: u32Replication-sequence number. Increments on every modification.
sequence_time: TimedateReplication-sequence time.
status_flags: u16Status flags word.
note_class: u16Note class (DOCUMENT / FORM / VIEW / ACL / etc). See class
constants.
modification_time: TimedateMost recent modification time. Operator-facing “when was this note last touched”.
number_of_note_items: u16Number of items (fields) attached to this note. Each item has its own descriptor block immediately after the note header.
number_of_responses: u16Number of response notes (replies to this note as a parent in a discussion-style database).
non_summary_data_identifier: u32Identifier into the non-summary data area for items too large to fit in summary slots (rich-text bodies, attachments).
non_summary_data_size: u32Size in bytes of the non-summary data area associated with this note.
access_time: TimedateMost recent access time.
creation_time: TimedateFile-creation time (first-write timestamp).
parent_note_identifier: u32NoteID of the parent (for response notes).
folder_reference_count: u32Number of folders that reference this note.
folder_note_identifier: u32NoteID of an associated folder (if any).
Implementations§
Source§impl NoteHeader
impl NoteHeader
Sourcepub fn parse(bytes: &[u8]) -> Result<Self, NsfError>
pub fn parse(bytes: &[u8]) -> Result<Self, NsfError>
Parse a note header from at least the first 100 bytes of a note record. Errors on signature mismatch or short input.
Sourcepub fn is_document(&self) -> bool
pub fn is_document(&self) -> bool
True if any DOCUMENT bit is set in the note class. User-visible emails, calendar entries, contacts, and custom-form documents all carry this bit.
Trait Implementations§
Source§impl Clone for NoteHeader
impl Clone for NoteHeader
Source§fn clone(&self) -> NoteHeader
fn clone(&self) -> NoteHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for NoteHeader
Source§impl Debug for NoteHeader
impl Debug for NoteHeader
impl Eq for NoteHeader
Source§impl PartialEq for NoteHeader
impl PartialEq for NoteHeader
Source§fn eq(&self, other: &NoteHeader) -> bool
fn eq(&self, other: &NoteHeader) -> bool
self and other values to be equal, and is used by ==.