pub struct TimestampRun(pub Vec<Timestamp>);Expand description
A run of timestamps — std/time/v1/Timestamp.
Tuple Fields§
§0: Vec<Timestamp>Trait Implementations§
Source§impl AstrsMessage for TimestampRun
impl AstrsMessage for TimestampRun
Source§const URN: &'static str = "std/time/v1/Timestamp"
const URN: &'static str = "std/time/v1/Timestamp"
The type URN this message’s columnar layout is declared against
(blueprint §24.3), e.g.
"std/vision/v1/Detections".Source§fn data_type() -> DataType
fn data_type() -> DataType
The columnar layout
AstrsMessage::to_record_batch produces and
AstrsMessage::from_record_batch expects.Source§fn to_record_batch(&self) -> Result<RecordBatch>
fn to_record_batch(&self) -> Result<RecordBatch>
Encodes one message into a one-row
RecordBatch (blueprint §6.1’s
“one record batch per message”). Read moreSource§fn from_record_batch(batch: &RecordBatch) -> Result<Self>
fn from_record_batch(batch: &RecordBatch) -> Result<Self>
Decodes one message from a one-row
RecordBatch. Read moreSource§fn schema() -> Schema
fn schema() -> Schema
The single-column
Schema wrapping AstrsMessage::data_type
under crate::DATA_COLUMN (blueprint §6.1).Source§fn type_urn() -> Result<TypeUrn, TypeUrnError>
fn type_urn() -> Result<TypeUrn, TypeUrnError>
Parses
AstrsMessage::URN. Read moreSource§impl Clone for TimestampRun
impl Clone for TimestampRun
Source§impl Debug for TimestampRun
impl Debug for TimestampRun
Source§impl Default for TimestampRun
impl Default for TimestampRun
impl Eq for TimestampRun
Source§impl FromPayload for TimestampRun
impl FromPayload for TimestampRun
Source§fn from_batch(batch: &RecordBatch) -> Result<Self>
fn from_batch(batch: &RecordBatch) -> Result<Self>
Reads the value from a decoded payload batch. Read more
Source§impl Hash for TimestampRun
impl Hash for TimestampRun
Source§impl Ord for TimestampRun
impl Ord for TimestampRun
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimestampRun
impl PartialEq for TimestampRun
Source§impl PartialOrd for TimestampRun
impl PartialOrd for TimestampRun
impl StructuralPartialEq for TimestampRun
Auto Trait Implementations§
impl Freeze for TimestampRun
impl RefUnwindSafe for TimestampRun
impl Send for TimestampRun
impl Sync for TimestampRun
impl Unpin for TimestampRun
impl UnsafeUnpin for TimestampRun
impl UnwindSafe for TimestampRun
Blanket Implementations§
impl<T> Allocation for T
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