pub struct MemoryEntityV1 {
pub name: String,
pub entity_type: EntityType,
pub role: Option<String>,
}Expand description
Structured entity reference inside a v1 claim.
Fields§
§name: StringPrefer proper nouns; specific not generic.
entity_type: EntityType§role: Option<String>Optional semantic role (e.g. “chooser”, “employer”, “rejected”).
Trait Implementations§
Source§impl Clone for MemoryEntityV1
impl Clone for MemoryEntityV1
Source§fn clone(&self) -> MemoryEntityV1
fn clone(&self) -> MemoryEntityV1
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 MemoryEntityV1
impl Debug for MemoryEntityV1
Source§impl<'de> Deserialize<'de> for MemoryEntityV1
impl<'de> Deserialize<'de> for MemoryEntityV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryEntityV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MemoryEntityV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryEntityV1
impl PartialEq for MemoryEntityV1
Source§impl Serialize for MemoryEntityV1
impl Serialize for MemoryEntityV1
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MemoryEntityV1
Auto Trait Implementations§
impl Freeze for MemoryEntityV1
impl RefUnwindSafe for MemoryEntityV1
impl Send for MemoryEntityV1
impl Sync for MemoryEntityV1
impl Unpin for MemoryEntityV1
impl UnsafeUnpin for MemoryEntityV1
impl UnwindSafe for MemoryEntityV1
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