pub struct BucketDescriptorBlock {
pub write_count: u32,
pub rrv_buckets: Vec<RrvBucketDescriptor>,
pub unk_names: Vec<String>,
pub unk_types: Vec<u8>,
pub unk_classes: Vec<u8>,
}Expand description
Parsed Bucket Descriptor Block: the list of every RRV bucket plus the Unique Name Key table (field-name strings).
Fields§
§write_count: u32Write-count from the header. Higher = fresher (used to pick between the primary and WAL-redundant copies).
rrv_buckets: Vec<RrvBucketDescriptor>Every RRV bucket descriptor, in file order.
unk_names: Vec<String>Unique Name Key strings, indexed by name_id (a note item’s
name_id indexes this vector to recover the field name, e.g.
FirstName, $UpdatedBy). Empty when the UNK text region was not
present / decodable.
unk_types: Vec<u8>Item type byte per name_id (UNK entry offset 6). Parallel to
unk_names.
unk_classes: Vec<u8>Item class byte per name_id (UNK entry offset 7): 0x03 NUMBER,
0x04 TIME, 0x05 TEXT, 0x06 FORMULA, 0x00 NOCOMPUTE. Parallel to
unk_names.
Implementations§
Source§impl BucketDescriptorBlock
impl BucketDescriptorBlock
Sourcepub fn name(&self, name_id: u16) -> Option<&str>
pub fn name(&self, name_id: u16) -> Option<&str>
Resolve a note item’s name_id to its field-name string.
Sourcepub fn field_kind(&self, name_id: u16) -> FieldKind
pub fn field_kind(&self, name_id: u16) -> FieldKind
Authoritative data kind of the field with this name_id, from the
UNK table’s class/type bytes. Returns [FieldKind::Unknown] when the
id is out of range.
Trait Implementations§
Source§impl Clone for BucketDescriptorBlock
impl Clone for BucketDescriptorBlock
Source§fn clone(&self) -> BucketDescriptorBlock
fn clone(&self) -> BucketDescriptorBlock
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 BucketDescriptorBlock
impl Debug for BucketDescriptorBlock
impl Eq for BucketDescriptorBlock
Source§impl PartialEq for BucketDescriptorBlock
impl PartialEq for BucketDescriptorBlock
Source§fn eq(&self, other: &BucketDescriptorBlock) -> bool
fn eq(&self, other: &BucketDescriptorBlock) -> bool
self and other values to be equal, and is used by ==.