pub struct MentionRef {
pub surface: String,
pub entity_type: String,
pub span: (u32, u32),
}Expand description
A reference to an entity mention in the episode text.
surface must appear verbatim at [span.0, span.1) (the fabricated-entity gate).
Fields§
§surface: String§entity_type: String§span: (u32, u32)Trait Implementations§
Source§impl Clone for MentionRef
impl Clone for MentionRef
Source§fn clone(&self) -> MentionRef
fn clone(&self) -> MentionRef
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 MentionRef
impl Debug for MentionRef
Source§impl<'de> Deserialize<'de> for MentionRef
impl<'de> Deserialize<'de> for MentionRef
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
Auto Trait Implementations§
impl Freeze for MentionRef
impl RefUnwindSafe for MentionRef
impl Send for MentionRef
impl Sync for MentionRef
impl Unpin for MentionRef
impl UnsafeUnpin for MentionRef
impl UnwindSafe for MentionRef
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