pub struct Query {
pub action: Action,
pub elementtype: Cmp<ElementType>,
pub elementgroup: Cmp<ElementGroup>,
pub contexttype: Cmp<ElementType>,
pub set: Cmp<String>,
pub class: Cmp<String>,
pub processor: Cmp<String>,
pub subset: Cmp<String>,
pub annotator: Cmp<String>,
pub annotatortype: Cmp<ProcessorType>,
pub confidence: Cmp<f64>,
}
Expand description
The query defines a search query on a FoLiA document
with various matching criteria. It is turned into a Selector
, the encoded variant, when given a document.
Fields§
§action: Action
§elementtype: Cmp<ElementType>
§elementgroup: Cmp<ElementGroup>
§contexttype: Cmp<ElementType>
§set: Cmp<String>
§class: Cmp<String>
§processor: Cmp<String>
§subset: Cmp<String>
§annotator: Cmp<String>
§annotatortype: Cmp<ProcessorType>
§confidence: Cmp<f64>
Implementations§
Source§impl Query
impl Query
Sourcepub fn element(self, value: Cmp<ElementType>) -> Self
pub fn element(self, value: Cmp<ElementType>) -> Self
Add a matching criterion on element type
Sourcepub fn contexttype(self, value: Cmp<ElementType>) -> Self
pub fn contexttype(self, value: Cmp<ElementType>) -> Self
Add a matching criterion on element type for the context
Sourcepub fn elementgroup(self, value: Cmp<ElementGroup>) -> Self
pub fn elementgroup(self, value: Cmp<ElementGroup>) -> Self
Add a matching criterion on element group
Sourcepub fn annotator(self, value: Cmp<String>) -> Self
pub fn annotator(self, value: Cmp<String>) -> Self
Add a matching criterion on annotator (i.e. the name of a processor)
Sourcepub fn annotatortype(self, value: Cmp<ProcessorType>) -> Self
pub fn annotatortype(self, value: Cmp<ProcessorType>) -> Self
Add a matching criterion on annotator type (i.e. the type of a processor)
Sourcepub fn confidence(self, value: Cmp<f64>) -> Self
pub fn confidence(self, value: Cmp<f64>) -> Self
Add a matching criterion on confidence value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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