pub struct StatisticsHeader {
pub version: u32,
pub statistics_kind: u32,
pub data_length: u32,
pub metadata1: u32,
pub metadata2: u32,
pub metadata3: u32,
pub checksum: u32,
pub table_id: Option<[u8; 16]>,
}Expand description
Statistics.db file header with version and metadata Updated to support both legacy and enhanced formats
Fields§
§version: u32Format version/type identifier
statistics_kind: u32Statistics type/kind identifier (for enhanced format) or table_id (legacy)
data_length: u32Data length or offset
metadata1: u32Additional metadata field
metadata2: u32Additional metadata field
metadata3: u32Additional metadata field
checksum: u32CRC32 checksum of the statistics data
table_id: Option<[u8; 16]>Table UUID for validation (optional for enhanced format)
Trait Implementations§
Source§impl Clone for StatisticsHeader
impl Clone for StatisticsHeader
Source§fn clone(&self) -> StatisticsHeader
fn clone(&self) -> StatisticsHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatisticsHeader
impl Debug for StatisticsHeader
Source§impl<'de> Deserialize<'de> for StatisticsHeader
impl<'de> Deserialize<'de> for StatisticsHeader
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatisticsHeader
impl RefUnwindSafe for StatisticsHeader
impl Send for StatisticsHeader
impl Sync for StatisticsHeader
impl Unpin for StatisticsHeader
impl UnsafeUnpin for StatisticsHeader
impl UnwindSafe for StatisticsHeader
Blanket Implementations§
impl<T> Allocation for T
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