pub struct TimeIndexSpec {
pub timestamp_column: String,
pub entity_columns: Vec<String>,
pub bucket: TimeBucket,
pub timezone: Option<String>,
}Expand description
Configuration for the time index of a time-series table.
In v0.1 this is assumed to exist for all “time-series” tables; a future
TableKind::Generic may omit it.
Fields§
§timestamp_column: StringName of the timestamp column (for example, "ts" or "timestamp").
entity_columns: Vec<String>Optional entity/symbol columns that help partition the time axis
(for example, ["symbol"] or ["symbol", "venue"]).
This is metadata only; enforcement and partitioning are handled by higher layers.
bucket: TimeBucketLogical bucket size used by coverage bitmaps (for example, 1 minute, 1 hour).
timezone: Option<String>Optional IANA timezone identifier (for example, "America/New_York").
For v0.1 this is primarily reserved for future use; timestamps are generally expected to be stored in UTC.
Trait Implementations§
Source§impl Clone for TimeIndexSpec
impl Clone for TimeIndexSpec
Source§fn clone(&self) -> TimeIndexSpec
fn clone(&self) -> TimeIndexSpec
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 TimeIndexSpec
impl Debug for TimeIndexSpec
Source§impl<'de> Deserialize<'de> for TimeIndexSpec
impl<'de> Deserialize<'de> for TimeIndexSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeIndexSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeIndexSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimeIndexSpec
impl PartialEq for TimeIndexSpec
Source§impl Serialize for TimeIndexSpec
impl Serialize for TimeIndexSpec
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 Eq for TimeIndexSpec
impl StructuralPartialEq for TimeIndexSpec
Auto Trait Implementations§
impl Freeze for TimeIndexSpec
impl RefUnwindSafe for TimeIndexSpec
impl Send for TimeIndexSpec
impl Sync for TimeIndexSpec
impl Unpin for TimeIndexSpec
impl UnsafeUnpin for TimeIndexSpec
impl UnwindSafe for TimeIndexSpec
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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