pub struct EntityCandidate {
pub name: String,
pub context: Option<String>,
pub memory_id: Option<MemoryId>,
}Expand description
An entity candidate passed to the resolution method.
Fields§
§name: StringThe raw entity reference string.
context: Option<String>Optional surrounding context to help disambiguation.
memory_id: Option<MemoryId>The memory ID this entity was extracted from.
Trait Implementations§
Source§impl Clone for EntityCandidate
impl Clone for EntityCandidate
Source§fn clone(&self) -> EntityCandidate
fn clone(&self) -> EntityCandidate
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 EntityCandidate
impl Debug for EntityCandidate
Source§impl<'de> Deserialize<'de> for EntityCandidate
impl<'de> Deserialize<'de> for EntityCandidate
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 EntityCandidate
impl RefUnwindSafe for EntityCandidate
impl Send for EntityCandidate
impl Sync for EntityCandidate
impl Unpin for EntityCandidate
impl UnsafeUnpin for EntityCandidate
impl UnwindSafe for EntityCandidate
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