pub struct Anchor {
pub char_range: Option<(usize, usize)>,
pub quote: Option<String>,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub sentence_id: Option<String>,
pub source_version: Option<String>,
pub status: AnchorStatus,
}Expand description
Multi-selector anchor. Any field may be None; the resolver falls
through: position → quote + context → sentence id → orphan.
Fields§
§char_range: Option<(usize, usize)>TextPositionSelector: fast, fragile. (start, end) in chars.
quote: Option<String>TextQuoteSelector body.
prefix: Option<String>Context before the quote — used for disambiguation.
suffix: Option<String>Context after the quote.
sentence_id: Option<String>SHA1 of the normalized sentence containing the quote.
source_version: Option<String>Which paper-text extraction version this was anchored against.
status: AnchorStatusLast-known resolution status; updated on open.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Anchor
impl<'de> Deserialize<'de> for Anchor
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
impl Eq for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.