pub struct DirectGenerator {
pub max_edits: Option<u32>,
pub prefix_length: Option<u32>,
pub field: String,
pub size: Option<u32>,
pub max_term_freq: Option<f64>,
pub max_inspections: Option<f64>,
pub min_doc_freq: Option<f64>,
pub min_word_length: Option<u32>,
pub suggest_mode: Option<String>,
pub pre_filter: Option<String>,
pub post_filter: Option<String>,
}Fields§
§max_edits: Option<u32>§prefix_length: Option<u32>§field: String§size: Option<u32>§max_term_freq: Option<f64>§max_inspections: Option<f64>§min_doc_freq: Option<f64>§min_word_length: Option<u32>§suggest_mode: Option<String>§pre_filter: Option<String>§post_filter: Option<String>Implementations§
Source§impl DirectGenerator
impl DirectGenerator
pub fn new(field: String) -> DirectGenerator
Trait Implementations§
Source§impl Clone for DirectGenerator
impl Clone for DirectGenerator
Source§fn clone(&self) -> DirectGenerator
fn clone(&self) -> DirectGenerator
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 DirectGenerator
impl Debug for DirectGenerator
Source§impl Default for DirectGenerator
impl Default for DirectGenerator
Source§fn default() -> DirectGenerator
fn default() -> DirectGenerator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectGenerator
impl<'de> Deserialize<'de> for DirectGenerator
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 DirectGenerator
impl PartialEq for DirectGenerator
Source§fn eq(&self, other: &DirectGenerator) -> bool
fn eq(&self, other: &DirectGenerator) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DirectGenerator
impl Serialize for DirectGenerator
impl StructuralPartialEq for DirectGenerator
Auto Trait Implementations§
impl Freeze for DirectGenerator
impl RefUnwindSafe for DirectGenerator
impl Send for DirectGenerator
impl Sync for DirectGenerator
impl Unpin for DirectGenerator
impl UnsafeUnpin for DirectGenerator
impl UnwindSafe for DirectGenerator
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