pub struct SpatialRecordEntity {
pub entity: SemanticEntity,
pub provenance: RecordProvenance,
pub frame_id: FrameId,
pub timestamp: Timestamp,
}Expand description
A semantic entity derived from one versioned spatial record.
The embedded SemanticEntity remains compatible with the existing
search index, while this wrapper keeps the record’s lineage and spatial
metadata alongside it. Model runtimes are intentionally not involved;
callers may supply an embedding from any explicit adapter.
Fields§
§entity: SemanticEntitySearch/index payload.
provenance: RecordProvenanceSource lineage copied from the input record.
frame_id: FrameIdCoordinate frame of the centroid.
timestamp: TimestampObservation timestamp copied from the input record.
Implementations§
Source§impl SpatialRecordEntity
impl SpatialRecordEntity
Sourcepub fn try_from_record(
record: &SpatialRecord,
labels: Vec<OpenVocabLabel>,
embedding: Option<Embedding>,
) -> SemanticResult<Self>
pub fn try_from_record( record: &SpatialRecord, labels: Vec<OpenVocabLabel>, embedding: Option<Embedding>, ) -> SemanticResult<Self>
Builds a deterministic semantic entity from a spatial record.
Sourcepub fn entity(&self) -> &SemanticEntity
pub fn entity(&self) -> &SemanticEntity
Returns the search/index payload without losing the lineage wrapper.
Trait Implementations§
Source§impl Clone for SpatialRecordEntity
impl Clone for SpatialRecordEntity
Source§fn clone(&self) -> SpatialRecordEntity
fn clone(&self) -> SpatialRecordEntity
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 SpatialRecordEntity
impl Debug for SpatialRecordEntity
Source§impl PartialEq for SpatialRecordEntity
impl PartialEq for SpatialRecordEntity
Source§fn eq(&self, other: &SpatialRecordEntity) -> bool
fn eq(&self, other: &SpatialRecordEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpatialRecordEntity
Auto Trait Implementations§
impl Freeze for SpatialRecordEntity
impl RefUnwindSafe for SpatialRecordEntity
impl Send for SpatialRecordEntity
impl Sync for SpatialRecordEntity
impl Unpin for SpatialRecordEntity
impl UnsafeUnpin for SpatialRecordEntity
impl UnwindSafe for SpatialRecordEntity
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