pub struct AnnotatedParagraph {
pub id: AnnotationId,
pub span: TextSpanRef,
pub text: String,
pub sentence_start: usize,
pub sentence_end: usize,
pub sentence_ids: Vec<AnnotationId>,
}Expand description
Data type for annotated paragraph.
Fields§
§id: AnnotationIdIdentifier for this value.
span: TextSpanRefThe span value.
text: StringText content for this value.
sentence_start: usizeThe sentence start value.
sentence_end: usizeThe sentence end value.
sentence_ids: Vec<AnnotationId>The sentence identifiers value.
Trait Implementations§
Source§impl Clone for AnnotatedParagraph
impl Clone for AnnotatedParagraph
Source§fn clone(&self) -> AnnotatedParagraph
fn clone(&self) -> AnnotatedParagraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AnnotatedParagraph
impl Debug for AnnotatedParagraph
Source§impl<'de> Deserialize<'de> for AnnotatedParagraph
impl<'de> Deserialize<'de> for AnnotatedParagraph
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 AnnotatedParagraph
Source§impl PartialEq for AnnotatedParagraph
impl PartialEq for AnnotatedParagraph
Source§fn eq(&self, other: &AnnotatedParagraph) -> bool
fn eq(&self, other: &AnnotatedParagraph) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotatedParagraph
impl Serialize for AnnotatedParagraph
impl StructuralPartialEq for AnnotatedParagraph
Auto Trait Implementations§
impl Freeze for AnnotatedParagraph
impl RefUnwindSafe for AnnotatedParagraph
impl Send for AnnotatedParagraph
impl Sync for AnnotatedParagraph
impl Unpin for AnnotatedParagraph
impl UnsafeUnpin for AnnotatedParagraph
impl UnwindSafe for AnnotatedParagraph
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