pub struct AdcpeConfig {
pub dimensions: usize,
pub noise_scale: f64,
}Expand description
Configuration for ADCPE encryption.
Fields§
§dimensions: usizeDimensionality of the embedding vectors.
noise_scale: f64Optional noise scale (0.0 = exact distance preservation, >0 adds noise).
Trait Implementations§
Source§impl Clone for AdcpeConfig
impl Clone for AdcpeConfig
Source§fn clone(&self) -> AdcpeConfig
fn clone(&self) -> AdcpeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AdcpeConfig
impl Debug for AdcpeConfig
Source§impl<'de> Deserialize<'de> for AdcpeConfig
impl<'de> Deserialize<'de> for AdcpeConfig
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
Auto Trait Implementations§
impl Freeze for AdcpeConfig
impl RefUnwindSafe for AdcpeConfig
impl Send for AdcpeConfig
impl Sync for AdcpeConfig
impl Unpin for AdcpeConfig
impl UnsafeUnpin for AdcpeConfig
impl UnwindSafe for AdcpeConfig
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