pub enum EntityType {
Activities,
TrackPoints,
DailyHealth,
PerformanceMetrics,
Weight,
Profiles,
}Expand description
Entity types with their partition strategies
Variants§
Activities
Weekly partitions (YYYY-Www)
TrackPoints
Daily partitions (YYYY-MM-DD)
DailyHealth
Monthly partitions (YYYY-MM)
PerformanceMetrics
Monthly partitions (YYYY-MM)
Weight
Monthly partitions (YYYY-MM)
Profiles
Single file (profiles.parquet)
Implementations§
Source§impl EntityType
impl EntityType
Sourcepub fn partition_key(&self, date: NaiveDate) -> String
pub fn partition_key(&self, date: NaiveDate) -> String
Calculate partition key for a given date
Sourcepub fn glob_pattern(&self) -> String
pub fn glob_pattern(&self) -> String
Get the glob pattern for querying all partitions
Trait Implementations§
Source§impl Clone for EntityType
impl Clone for EntityType
Source§fn clone(&self) -> EntityType
fn clone(&self) -> EntityType
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 EntityType
impl Debug for EntityType
Source§impl PartialEq for EntityType
impl PartialEq for EntityType
impl Copy for EntityType
impl Eq for EntityType
impl StructuralPartialEq for EntityType
Auto Trait Implementations§
impl Freeze for EntityType
impl RefUnwindSafe for EntityType
impl Send for EntityType
impl Sync for EntityType
impl Unpin for EntityType
impl UnsafeUnpin for EntityType
impl UnwindSafe for EntityType
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.