pub struct EntityInput {
pub name: String,
pub entity_type: String,
pub aliases: Vec<String>,
pub confidence: f32,
pub valid_from: DateTime<Utc>,
pub valid_to: Option<DateTime<Utc>>,
pub embedding: Option<Vec<f32>>,
}Expand description
Agent-supplied entity. See module docs for the EntityId derivation
contract — the (name, entity_type) pair is the source of truth for
node identity; supplying a different alias for the same entity does
not create a new node.
Fields§
§name: String§entity_type: String§aliases: Vec<String>§confidence: f32§valid_from: DateTime<Utc>§valid_to: Option<DateTime<Utc>>§embedding: Option<Vec<f32>>Optional caller-supplied entity embedding. When Some, MUST match
the handle’s Embedder::dim — a mismatch surfaces as a
StorageError::Backend at ingest time so the operator can correct
the wheel build rather than silently corrupting the vector index.
When None, Lunaris embeds Self::name via the handle’s
Embedder.
Trait Implementations§
Source§impl Clone for EntityInput
impl Clone for EntityInput
Source§fn clone(&self) -> EntityInput
fn clone(&self) -> EntityInput
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 EntityInput
impl Debug for EntityInput
Source§impl<'de> Deserialize<'de> for EntityInput
impl<'de> Deserialize<'de> for EntityInput
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 EntityInput
impl RefUnwindSafe for EntityInput
impl Send for EntityInput
impl Sync for EntityInput
impl Unpin for EntityInput
impl UnsafeUnpin for EntityInput
impl UnwindSafe for EntityInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more