Skip to main content

VectorEncryption

Enum VectorEncryption 

Source
pub enum VectorEncryption {
    None,
    Dcpe,
    ClientSide,
}
Expand description

How a collection’s vectors are encrypted (ADR-0031, ADR-0032). Encryption is always client-side — the server never holds the key. Defaults to VectorEncryption::None. The variants sit on Quiver’s encrypted-search spectrum, from fastest to most confidential:

  • None: plaintext vectors; the server ranks and sees everything (the default).
  • Dcpe: experimental property-preserving encryption; the server ranks ciphertexts but the approximate distance-comparison relation leaks by design. L2 only; not semantically secure (ADR-0031).
  • ClientSide: semantically secure (IND-CPA) opaque AEAD ciphertext; the server stores blobs it cannot read and does no distance math, so the client fetches and ranks locally (ADR-0032).

The discriminants are chosen so a descriptor written when this flag was a bool encrypted_vectors decodes unchanged: false (byte 0) is None and true (byte 1) is Dcpe — no data migration.

Variants§

§

None

Plaintext vectors; the server ranks (the default).

§

Dcpe

Experimental DCPE ciphertext (ADR-0031): the server ranks, the approximate distance-comparison relation leaks by design, L2 only, not semantically secure.

§

ClientSide

Semantically secure opaque AEAD ciphertext (ADR-0032): the server stores blobs it cannot read and does no distance math; the client ranks locally.

Trait Implementations§

Source§

impl Clone for VectorEncryption

Source§

fn clone(&self) -> VectorEncryption

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for VectorEncryption

Source§

impl Debug for VectorEncryption

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for VectorEncryption

Source§

fn default() -> VectorEncryption

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for VectorEncryption

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<VectorEncryption, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for VectorEncryption

Source§

impl PartialEq for VectorEncryption

Source§

fn eq(&self, other: &VectorEncryption) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for VectorEncryption

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for VectorEncryption

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.