pub enum EntityType {
Person,
Organization,
Project,
Topic,
Preference,
Task,
Event,
Note,
}Expand description
Types of entities that can be extracted.
TigerStyle: Exhaustive enum prevents invalid states.
Variants§
Person
Person mentioned in text
Organization
Organization or company
Project
Project or initiative
Topic
Topic or concept
Preference
User preference
Task
Task or action item
Event
Event or meeting
Note
Fallback for unstructured content
Implementations§
Source§impl EntityType
impl EntityType
Sourcepub fn all() -> &'static [EntityType]
pub fn all() -> &'static [EntityType]
Get all entity types in order.
Sourcepub fn from_str_or_note(s: &str) -> Self
pub fn from_str_or_note(s: &str) -> Self
Parse from string, defaulting to Note for unknown types.
Trait Implementations§
Source§impl Clone for EntityType
impl Clone for EntityType
Source§fn clone(&self) -> EntityType
fn clone(&self) -> EntityType
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 EntityType
impl Debug for EntityType
Source§impl Default for EntityType
impl Default for EntityType
Source§impl<'de> Deserialize<'de> for EntityType
impl<'de> Deserialize<'de> for EntityType
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
Source§impl Display for EntityType
impl Display for EntityType
Source§impl Hash for EntityType
impl Hash for EntityType
Source§impl PartialEq for EntityType
impl PartialEq for EntityType
Source§impl Serialize for EntityType
impl Serialize for EntityType
impl Copy for EntityType
impl Eq for EntityType
impl StructuralPartialEq for EntityType
Auto Trait Implementations§
impl Freeze for EntityType
impl RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl UnwindSafe for EntityType
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