pub struct TableId {
pub app: AppId,
pub database: DatabaseName,
pub table: TableName,
}Expand description
Identity of a table within a single deployment’s data plane.
A deployment is one OS process; everything inside it shares the
same tenant context, so TableId carries only the in-process
coordinates: which application, which database namespace, which
table. The deployment-level scope (whose data this is, which node
presents it on which subdomain) is expressed by
DeploymentHash at the routing layer, never duplicated here.
Used as the addressable unit on the replication wire below the per-deployment frame, in audit records, and in any cross-node observation of writes.
String-based in v0. Future optimization: interned numeric ordinals via a per-deployment registry, reducing wire overhead from ~32 bytes/record to ~8. Drop-in replaceable when profiling justifies; v0 prefers clarity.
Fields§
§app: AppIdApplication identifier within the deployment.
database: DatabaseNameDatabase namespace within the application (default "data").
table: TableNamePhysical table name within the database.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableId
impl<'de> Deserialize<'de> for TableId
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>,
impl Eq for TableId
impl StructuralPartialEq for TableId
Auto Trait Implementations§
impl Freeze for TableId
impl RefUnwindSafe for TableId
impl Send for TableId
impl Sync for TableId
impl Unpin for TableId
impl UnsafeUnpin for TableId
impl UnwindSafe for TableId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ToEcoString for T
impl<T> ToEcoString for T
Source§fn to_eco_string(&self) -> EcoString
fn to_eco_string(&self) -> EcoString
EcoString.