pub struct HierarchyPattern {
pub id: String,
pub pattern: String,
pub level: usize,
pub weight: f32,
pub applicable_types: Vec<DocumentType>,
}Expand description
Hierarchy detection patterns
Fields§
§id: StringPattern identifier
pattern: StringPattern regex
level: usizeHierarchy level
weight: f32Pattern weight
applicable_types: Vec<DocumentType>Document types where applicable
Trait Implementations§
Source§impl Clone for HierarchyPattern
impl Clone for HierarchyPattern
Source§fn clone(&self) -> HierarchyPattern
fn clone(&self) -> HierarchyPattern
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 moreAuto Trait Implementations§
impl Freeze for HierarchyPattern
impl RefUnwindSafe for HierarchyPattern
impl Send for HierarchyPattern
impl Sync for HierarchyPattern
impl Unpin for HierarchyPattern
impl UnwindSafe for HierarchyPattern
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