pub struct SetTableMetadataParams {
pub table: String,
pub source_url: Option<String>,
pub source_description: Option<String>,
pub purpose: Option<String>,
pub license: Option<String>,
pub notes: Option<String>,
pub data_url: Option<String>,
pub database: Option<String>,
}Expand description
Parameters for the set_table_metadata tool.
Writes prose fields to the _table_catalog row for table. Unset
fields are left unchanged; passing an explicit empty string ("")
clears a field. Mechanical fields (loaded_at, last_refreshed_at,
row_count, load_tool, load_params) are managed by the server
and cannot be set through this tool.
Fields§
§table: StringTarget table name. Must already exist in the workspace and have a
catalog entry — load the table first (or run execute CREATE TABLE) so the server auto-stubs the row.
source_url: Option<String>Where the data came from (URL, S3 path, internal system name).
source_description: Option<String>Short description of the dataset (what’s in the table, how to interpret it).
purpose: Option<String>Why this data is in the workspace — what questions it’s intended to answer.
license: Option<String>License or attribution requirements for the source data.
notes: Option<String>Free-form notes: refresh instructions, known gotchas, caveats.
data_url: Option<String>Machine-actionable download URL for the raw data file. Distinct
from source_url (which is a human-readable page/reference).
Enables mechanical refresh: the server can re-ingest the table
from this URL + load_params without prose parsing.
database: Option<String>Target database alias for the catalog write. Omit (or pass
"local" / "persistent") to update the persistent catalog —
matches the default for the ephemeral primary’s tables.
Pass any user-attached writable alias to update that DB’s
per-database _table_catalog instead. Read-only attachments
are rejected with a clear “re-attach with writable:true”
message.
Trait Implementations§
Source§impl Debug for SetTableMetadataParams
impl Debug for SetTableMetadataParams
Source§impl<'de> Deserialize<'de> for SetTableMetadataParams
impl<'de> Deserialize<'de> for SetTableMetadataParams
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>,
Source§impl JsonSchema for SetTableMetadataParams
impl JsonSchema for SetTableMetadataParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SetTableMetadataParams
impl RefUnwindSafe for SetTableMetadataParams
impl Send for SetTableMetadataParams
impl Sync for SetTableMetadataParams
impl Unpin for SetTableMetadataParams
impl UnsafeUnpin for SetTableMetadataParams
impl UnwindSafe for SetTableMetadataParams
Blanket Implementations§
impl<T> Allocation for T
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request