pub struct RecognizerDef {
pub name: String,
pub entity_type: String,
pub version: String,
pub patterns: Vec<PatternDef>,
pub context_words: Vec<String>,
pub context_score_boost: f64,
pub deny_list: Vec<String>,
pub validators: Vec<String>,
pub supported_languages: Option<Vec<String>>,
}Fields§
§name: String§entity_type: String§version: String§patterns: Vec<PatternDef>§context_words: Vec<String>§context_score_boost: f64§deny_list: Vec<String>§validators: Vec<String>§supported_languages: Option<Vec<String>>Trait Implementations§
Source§impl Clone for RecognizerDef
impl Clone for RecognizerDef
Source§fn clone(&self) -> RecognizerDef
fn clone(&self) -> RecognizerDef
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 RecognizerDef
impl Debug for RecognizerDef
Source§impl<'de> Deserialize<'de> for RecognizerDef
impl<'de> Deserialize<'de> for RecognizerDef
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 RecognizerDef
impl RefUnwindSafe for RecognizerDef
impl Send for RecognizerDef
impl Sync for RecognizerDef
impl Unpin for RecognizerDef
impl UnsafeUnpin for RecognizerDef
impl UnwindSafe for RecognizerDef
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