pub struct SpatialRecord { /* private fields */ }Expand description
One versioned point-cloud observation with attached metadata.
Implementations§
Source§impl SpatialRecord
impl SpatialRecord
Sourcepub fn try_new(
schema: SchemaDescriptor,
cloud: PointCloud,
) -> RecordsResult<Self>
pub fn try_new( schema: SchemaDescriptor, cloud: PointCloud, ) -> RecordsResult<Self>
Creates a record after validating that the cloud matches the descriptor schema.
Sourcepub fn try_new_with_provenance(
schema: SchemaDescriptor,
cloud: PointCloud,
provenance: RecordProvenance,
) -> RecordsResult<Self>
pub fn try_new_with_provenance( schema: SchemaDescriptor, cloud: PointCloud, provenance: RecordProvenance, ) -> RecordsResult<Self>
Creates a record with explicit source lineage after schema validation.
Sourcepub fn try_from_cloud(
id: impl Into<SchemaId>,
version: SchemaVersion,
cloud: PointCloud,
) -> RecordsResult<Self>
pub fn try_from_cloud( id: impl Into<SchemaId>, version: SchemaVersion, cloud: PointCloud, ) -> RecordsResult<Self>
Builds a record from a cloud using an explicit schema id/version.
Sourcepub fn try_from_cloud_with_provenance(
id: impl Into<SchemaId>,
version: SchemaVersion,
cloud: PointCloud,
provenance: RecordProvenance,
) -> RecordsResult<Self>
pub fn try_from_cloud_with_provenance( id: impl Into<SchemaId>, version: SchemaVersion, cloud: PointCloud, provenance: RecordProvenance, ) -> RecordsResult<Self>
Builds a record from a cloud and explicit source lineage.
Sourcepub fn schema(&self) -> &SchemaDescriptor
pub fn schema(&self) -> &SchemaDescriptor
Returns the schema descriptor.
Sourcepub fn cloud(&self) -> &PointCloud
pub fn cloud(&self) -> &PointCloud
Returns the owned point cloud.
Sourcepub fn provenance(&self) -> &RecordProvenance
pub fn provenance(&self) -> &RecordProvenance
Returns source lineage attached to this record.
Sourcepub fn with_provenance(self, provenance: RecordProvenance) -> Self
pub fn with_provenance(self, provenance: RecordProvenance) -> Self
Replaces source lineage without changing schema or cloud ownership.
Sourcepub fn into_parts(self) -> (SchemaDescriptor, PointCloud, RecordProvenance)
pub fn into_parts(self) -> (SchemaDescriptor, PointCloud, RecordProvenance)
Consumes the record into schema, cloud, and source lineage.
Sourcepub fn into_cloud(self) -> PointCloud
pub fn into_cloud(self) -> PointCloud
Consumes the record into its cloud.
Sourcepub fn metadata(&self) -> &SpatialMetadata
pub fn metadata(&self) -> &SpatialMetadata
Returns spatial metadata attached to the cloud.
Trait Implementations§
Source§impl Clone for SpatialRecord
impl Clone for SpatialRecord
Source§fn clone(&self) -> SpatialRecord
fn clone(&self) -> SpatialRecord
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 SpatialRecord
impl Debug for SpatialRecord
Source§impl PartialEq for SpatialRecord
impl PartialEq for SpatialRecord
Source§fn eq(&self, other: &SpatialRecord) -> bool
fn eq(&self, other: &SpatialRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpatialRecord
Auto Trait Implementations§
impl Freeze for SpatialRecord
impl RefUnwindSafe for SpatialRecord
impl Send for SpatialRecord
impl Sync for SpatialRecord
impl Unpin for SpatialRecord
impl UnsafeUnpin for SpatialRecord
impl UnwindSafe for SpatialRecord
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