pub struct Provenance {
pub dataset: Dataset,
pub epsilon_m: f32,
pub quant_bits: QuantBits,
pub grid_deg: f32,
pub simplify_algorithm: SimplifyAlgorithm,
pub geom: GeomEncoding,
pub codec: Codec,
pub density_weight_floor_e4: u16,
}Expand description
The subset of header fields a recipe determines, in the header’s
representation (f32 tolerance and grid size, fixed-point floor).
Converting both a Recipe and a PayloadHeader into this type
gives a recipe guard an exact, literal-free equality check.
Fields§
§dataset: DatasetThe dataset the asset was built from.
epsilon_m: f32The simplification tolerance in meters, as stamped in the header.
quant_bits: QuantBitsThe coordinate quantization width.
grid_deg: f32The grid cell size in degrees, as stamped in the header.
simplify_algorithm: SimplifyAlgorithmThe simplification algorithm the encoder ran.
geom: GeomEncodingThe geometry encoding.
codec: CodecThe payload compression codec.
density_weight_floor_e4: u16The density floor in fixed-point 1e-4; 0 means unweighted.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
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 moreimpl Copy for Provenance
Source§impl Debug for Provenance
impl Debug for Provenance
Source§impl From<&PayloadHeader> for Provenance
impl From<&PayloadHeader> for Provenance
Source§fn from(header: &PayloadHeader) -> Provenance
fn from(header: &PayloadHeader) -> Provenance
Converts to this type from the input type.
Source§impl From<&Recipe> for Provenance
impl From<&Recipe> for Provenance
Source§fn from(recipe: &Recipe) -> Provenance
fn from(recipe: &Recipe) -> Provenance
Converts to this type from the input type.
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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