Skip to main content

SizeReport

Struct SizeReport 

Source
pub struct SizeReport {
    pub root: String,
    pub tzif_files: u64,
    pub symlink_links: u64,
    pub other_files: u64,
    pub total_bytes: u64,
    pub total_tzif_bytes: u64,
    pub largest_tzif: Option<TzifEntry>,
    pub version_histogram: [u64; 4],
    pub footer_present: u64,
    pub bundle_hash: String,
    pub compiler: CompilerIdentity,
}
Expand description

The size report.

Fields§

§root: String§tzif_files: u64

Regular files that parse as TZif (a zone or a copy-mode link — not distinguished here).

§symlink_links: u64

Symlink entries (alias links in symlink-mode).

§other_files: u64

Regular files that are not valid TZif (e.g. manifest.json, alias-map.json).

§total_bytes: u64

Total bytes of all regular files (the on-disk bundle size).

§total_tzif_bytes: u64

Total bytes of the TZif files only (the timezone payload).

§largest_tzif: Option<TzifEntry>

The largest TZif file (relative path, bytes), if any.

§version_histogram: [u64; 4]

Count of TZif files at version v1 / v2 / v3 / v4 (index 0..3).

§footer_present: u64

TZif files carrying a non-empty POSIX-TZ footer.

§bundle_hash: String

Deterministic bundle hash: SHA-256 over the sorted relpath\0content-hash lines of every regular file + relpath\0symlink:<target> for each symlink (so link structure is captured). Same tree → same hash, regardless of traversal order.

§compiler: CompilerIdentity

Implementations§

Source§

impl SizeReport

Source

pub fn to_json(&self) -> String

Render as deterministic JSON (zic-rs-size-report-v1).

Source

pub fn to_text(&self) -> String

Render as a short human-readable summary.

Trait Implementations§

Source§

impl Debug for SizeReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.