Struct hypothesis::annotations::TextQuoteSelector[][src]

pub struct TextQuoteSelector {
    pub exact: String,
    pub prefix: String,
    pub suffix: String,
}

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: String

A copy of the text which is being selected, after normalization.

prefix: String

A snippet of text that occurs immediately before the text which is being selected.

suffix: String

The snippet of text that occurs immediately after the text which is being selected.

Trait Implementations

impl Clone for TextQuoteSelector[src]

impl Debug for TextQuoteSelector[src]

impl<'de> Deserialize<'de> for TextQuoteSelector[src]

impl PartialEq<TextQuoteSelector> for TextQuoteSelector[src]

impl Serialize for TextQuoteSelector[src]

impl StructuralPartialEq for TextQuoteSelector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.