pub struct SemanticEngineConfig {
pub backend: SemanticBackendKind,
pub model_path: Option<PathBuf>,
pub vocab_path: Option<PathBuf>,
pub max_chunks: usize,
pub adaptive_threshold: bool,
pub allow_fallback: bool,
}Fields§
§backend: SemanticBackendKind§model_path: Option<PathBuf>§vocab_path: Option<PathBuf>§max_chunks: usize§adaptive_threshold: bool§allow_fallback: boolImplementations§
Source§impl SemanticEngineConfig
impl SemanticEngineConfig
pub fn local_hash(max_chunks: usize, adaptive_threshold: bool) -> Self
Trait Implementations§
Source§impl Clone for SemanticEngineConfig
impl Clone for SemanticEngineConfig
Source§fn clone(&self) -> SemanticEngineConfig
fn clone(&self) -> SemanticEngineConfig
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 SemanticEngineConfig
impl Debug for SemanticEngineConfig
Source§impl<'de> Deserialize<'de> for SemanticEngineConfig
impl<'de> Deserialize<'de> for SemanticEngineConfig
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 SemanticEngineConfig
impl RefUnwindSafe for SemanticEngineConfig
impl Send for SemanticEngineConfig
impl Sync for SemanticEngineConfig
impl Unpin for SemanticEngineConfig
impl UnsafeUnpin for SemanticEngineConfig
impl UnwindSafe for SemanticEngineConfig
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