pub struct FibQuantCompressionReceiptV1 {Show 28 fields
pub schema_version: String,
pub profile_digest: String,
pub codebook_digest: String,
pub rotation_digest: String,
pub source_vector_digest: String,
pub encoded_digest: String,
pub norm_format: NormFormat,
pub code_schema_version: String,
pub profile_schema_version: String,
pub codebook_schema_version: String,
pub ambient_dim: u32,
pub block_dim: u32,
pub codebook_size: u32,
pub paper_rate_bits_per_coord: f64,
pub wire_index_bits: u8,
pub wire_bits_per_coord: f64,
pub rotation_seed: u64,
pub rotation_algorithm_version: String,
pub codebook_seed: u64,
pub mse: Option<f64>,
pub cosine_similarity: Option<f64>,
pub fallback_available: bool,
pub recorded_unix_seconds: i64,
pub original_bytes: usize,
pub encoded_bytes: usize,
pub compression_ratio: f64,
pub wire_bits_per_coord_actual: f64,
pub lloyd_refined: bool,
}Expand description
Compression receipt emitted by encode_with_receipt.
Fields§
§schema_version: StringStable schema marker.
profile_digest: StringProfile digest.
codebook_digest: StringCodebook digest.
rotation_digest: StringRotation digest.
source_vector_digest: StringDigest over the canonical source vector bytes.
encoded_digest: StringEncoded payload digest.
norm_format: NormFormatNorm payload format used by the encoded artifact.
code_schema_version: StringEncoded artifact schema marker.
profile_schema_version: StringProfile schema marker.
codebook_schema_version: StringCodebook schema marker.
ambient_dim: u32Ambient dimension d.
block_dim: u32Block dimension k.
codebook_size: u32Codebook size N.
paper_rate_bits_per_coord: f64Paper rate.
wire_index_bits: u8Wire index bits.
wire_bits_per_coord: f64Wire rate.
rotation_seed: u64Rotation seed.
rotation_algorithm_version: StringRotation algorithm identity.
codebook_seed: u64Codebook seed.
mse: Option<f64>Optional reconstruction MSE if measured.
cosine_similarity: Option<f64>Optional cosine similarity if measured.
fallback_available: boolWhether a fallback codec was available.
recorded_unix_seconds: i64Unix timestamp seconds, supplied by caller path.
original_bytes: usizeOriginal vector size in bytes (ambient_dim * 4 for f32).
encoded_bytes: usizeEncoded artifact size in bytes (compact binary form).
compression_ratio: f64Achieved compression ratio (original_bytes / encoded_bytes).
wire_bits_per_coord_actual: f64Bits per coordinate in the wire format.
lloyd_refined: boolWhether Lloyd-Max refinement was applied.
Trait Implementations§
Source§impl Clone for FibQuantCompressionReceiptV1
impl Clone for FibQuantCompressionReceiptV1
Source§fn clone(&self) -> FibQuantCompressionReceiptV1
fn clone(&self) -> FibQuantCompressionReceiptV1
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 FibQuantCompressionReceiptV1
impl Debug for FibQuantCompressionReceiptV1
Source§impl<'de> Deserialize<'de> for FibQuantCompressionReceiptV1
impl<'de> Deserialize<'de> for FibQuantCompressionReceiptV1
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>,
Source§impl PartialEq for FibQuantCompressionReceiptV1
impl PartialEq for FibQuantCompressionReceiptV1
Source§fn eq(&self, other: &FibQuantCompressionReceiptV1) -> bool
fn eq(&self, other: &FibQuantCompressionReceiptV1) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FibQuantCompressionReceiptV1
Auto Trait Implementations§
impl Freeze for FibQuantCompressionReceiptV1
impl RefUnwindSafe for FibQuantCompressionReceiptV1
impl Send for FibQuantCompressionReceiptV1
impl Sync for FibQuantCompressionReceiptV1
impl Unpin for FibQuantCompressionReceiptV1
impl UnsafeUnpin for FibQuantCompressionReceiptV1
impl UnwindSafe for FibQuantCompressionReceiptV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.