pub struct VectorCodecProfileV1 {
pub schema_version: String,
pub codec: String,
pub dim: u32,
pub bits: u8,
pub projections: Option<u32>,
pub seed: Option<u64>,
pub codec_version: String,
pub scoring_semantics: String,
pub normalization: String,
}Expand description
Stable identity for a vector codec configuration.
Fields§
§schema_version: StringStable schema marker for this profile format.
codec: StringCodec implementation identifier.
dim: u32Vector dimensionality. Persisted as fixed-width u32, never usize.
bits: u8Effective encoded bits per scalar, when applicable.
projections: Option<u32>Number of projection vectors, reserved for future derived codecs.
seed: Option<u64>Codec seed, reserved for randomized derived codecs.
codec_version: StringCodec wire/algorithm version.
scoring_semantics: StringDeclared scoring semantics for decoded/reference comparison.
normalization: StringDeclared vector normalization contract.
Implementations§
Trait Implementations§
Source§impl Clone for VectorCodecProfileV1
impl Clone for VectorCodecProfileV1
Source§fn clone(&self) -> VectorCodecProfileV1
fn clone(&self) -> VectorCodecProfileV1
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 VectorCodecProfileV1
impl Debug for VectorCodecProfileV1
Source§impl<'de> Deserialize<'de> for VectorCodecProfileV1
impl<'de> Deserialize<'de> for VectorCodecProfileV1
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
Source§impl PartialEq for VectorCodecProfileV1
impl PartialEq for VectorCodecProfileV1
Source§fn eq(&self, other: &VectorCodecProfileV1) -> bool
fn eq(&self, other: &VectorCodecProfileV1) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VectorCodecProfileV1
impl Serialize for VectorCodecProfileV1
impl Eq for VectorCodecProfileV1
impl StructuralPartialEq for VectorCodecProfileV1
Auto Trait Implementations§
impl Freeze for VectorCodecProfileV1
impl RefUnwindSafe for VectorCodecProfileV1
impl Send for VectorCodecProfileV1
impl Sync for VectorCodecProfileV1
impl Unpin for VectorCodecProfileV1
impl UnsafeUnpin for VectorCodecProfileV1
impl UnwindSafe for VectorCodecProfileV1
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