pub struct TextQuoteSelector {
pub exact: String,
pub prefix: String,
pub suffix: String,
}Expand description
This Selector describes a range of text by copying it, and including some of the text immediately before (a prefix) and after (a suffix) it to distinguish between multiple copies of the same sequence of characters.
For example, if the document were again “abcdefghijklmnopqrstuvwxyz”, one could select “efg” by a prefix of “abcd”, the match of “efg” and a suffix of “hijk”. Web Annotation Data Model - Text Quote Selector
Fields§
§exact: StringA copy of the text which is being selected, after normalization.
prefix: StringA snippet of text that occurs immediately before the text which is being selected.
suffix: StringThe snippet of text that occurs immediately after the text which is being selected.
Trait Implementations§
Source§impl Clone for TextQuoteSelector
impl Clone for TextQuoteSelector
Source§fn clone(&self) -> TextQuoteSelector
fn clone(&self) -> TextQuoteSelector
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 TextQuoteSelector
impl Debug for TextQuoteSelector
Source§impl<'de> Deserialize<'de> for TextQuoteSelector
impl<'de> Deserialize<'de> for TextQuoteSelector
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 TextQuoteSelector
impl PartialEq for TextQuoteSelector
Source§impl Serialize for TextQuoteSelector
impl Serialize for TextQuoteSelector
impl StructuralPartialEq for TextQuoteSelector
Auto Trait Implementations§
impl Freeze for TextQuoteSelector
impl RefUnwindSafe for TextQuoteSelector
impl Send for TextQuoteSelector
impl Sync for TextQuoteSelector
impl Unpin for TextQuoteSelector
impl UnwindSafe for TextQuoteSelector
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