pub enum ShardTableClassification {
TenantRoot,
TenantDependent,
Junction,
Lookup,
System,
Unknown,
}Expand description
Table classification for sharding behavior
Variants§
TenantRoot
Table has the tenant column directly
TenantDependent
Table is connected to tenant via FK chain
Junction
Junction/pivot table (many-to-many, include if any FK matches)
Lookup
Global/lookup table (include fully or skip based on config)
System
System table (skip by default: migrations, jobs, cache)
Unknown
Normal table that couldn’t be classified
Trait Implementations§
Source§impl Clone for ShardTableClassification
impl Clone for ShardTableClassification
Source§fn clone(&self) -> ShardTableClassification
fn clone(&self) -> ShardTableClassification
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 ShardTableClassification
impl Debug for ShardTableClassification
Source§impl Default for ShardTableClassification
impl Default for ShardTableClassification
Source§fn default() -> ShardTableClassification
fn default() -> ShardTableClassification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShardTableClassification
impl<'de> Deserialize<'de> for ShardTableClassification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ShardTableClassification
impl Display for ShardTableClassification
Source§impl PartialEq for ShardTableClassification
impl PartialEq for ShardTableClassification
Source§impl Serialize for ShardTableClassification
impl Serialize for ShardTableClassification
impl Copy for ShardTableClassification
impl Eq for ShardTableClassification
impl StructuralPartialEq for ShardTableClassification
Auto Trait Implementations§
impl Freeze for ShardTableClassification
impl RefUnwindSafe for ShardTableClassification
impl Send for ShardTableClassification
impl Sync for ShardTableClassification
impl Unpin for ShardTableClassification
impl UnwindSafe for ShardTableClassification
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§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<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