pub struct TableSemanticMetadata {
pub name: String,
pub role: TableRole,
pub primary_key: Vec<String>,
pub cluster_key: Option<Vec<String>>,
pub ts_column: Option<String>,
pub backed_by_vector_index: bool,
pub embedding_dimension: Option<usize>,
pub description: String,
}Expand description
Semantic metadata for a table (exposed via MCP resources)
Fields§
§name: StringTable name
role: TableRoleSemantic role of this table
primary_key: Vec<String>Primary key columns
cluster_key: Option<Vec<String>>Clustering key (for ordered access)
ts_column: Option<String>Timestamp column (for temporal queries)
backed_by_vector_index: boolWhether backed by a vector index
embedding_dimension: Option<usize>Embedding dimension (if vector collection)
description: StringHuman-readable description
Implementations§
Trait Implementations§
Source§impl Clone for TableSemanticMetadata
impl Clone for TableSemanticMetadata
Source§fn clone(&self) -> TableSemanticMetadata
fn clone(&self) -> TableSemanticMetadata
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 TableSemanticMetadata
impl Debug for TableSemanticMetadata
Source§impl<'de> Deserialize<'de> for TableSemanticMetadata
impl<'de> Deserialize<'de> for TableSemanticMetadata
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
Auto Trait Implementations§
impl Freeze for TableSemanticMetadata
impl RefUnwindSafe for TableSemanticMetadata
impl Send for TableSemanticMetadata
impl Sync for TableSemanticMetadata
impl Unpin for TableSemanticMetadata
impl UnwindSafe for TableSemanticMetadata
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<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