pub struct Rulepack {
pub schema_version: String,
pub rulepack_id: String,
pub rulepack_version: String,
pub default_locales: Vec<LocaleTag>,
pub locale: Option<LocaleData>,
pub recognizers: Vec<RecognizerSpec>,
}Fields§
§schema_version: String§rulepack_id: String§rulepack_version: String§default_locales: Vec<LocaleTag>§locale: Option<LocaleData>§recognizers: Vec<RecognizerSpec>Implementations§
Source§impl Rulepack
impl Rulepack
pub fn load(source: RulepackSource) -> Result<Rulepack, RulepackError>
pub fn parse(raw: &str) -> Result<Rulepack, RulepackError>
pub fn activated_classes(&self) -> BTreeSet<PiiClass>
Trait Implementations§
impl StructuralPartialEq for Rulepack
Auto Trait Implementations§
impl Freeze for Rulepack
impl RefUnwindSafe for Rulepack
impl Send for Rulepack
impl Sync for Rulepack
impl Unpin for Rulepack
impl UnsafeUnpin for Rulepack
impl UnwindSafe for Rulepack
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