pub struct EntityResult {
pub entity_type: String,
pub value: String,
pub score: f32,
pub start: usize,
pub end: usize,
pub tag: String,
}Expand description
A single extracted entity (shared with inference crate — mirrored here for API types).
Fields§
§entity_type: String§value: String§score: f32§start: usize§end: usize§tag: StringCanonical tag form: entity:<type>:<value>
Trait Implementations§
Source§impl Clone for EntityResult
impl Clone for EntityResult
Source§fn clone(&self) -> EntityResult
fn clone(&self) -> EntityResult
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 EntityResult
impl Debug for EntityResult
Source§impl<'de> Deserialize<'de> for EntityResult
impl<'de> Deserialize<'de> for EntityResult
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 EntityResult
impl RefUnwindSafe for EntityResult
impl Send for EntityResult
impl Sync for EntityResult
impl Unpin for EntityResult
impl UnsafeUnpin for EntityResult
impl UnwindSafe for EntityResult
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