pub struct DataSnapshotParams {
pub table: Option<String>,
pub scope: Option<String>,
pub dry_run: Option<bool>,
pub upload: Option<bool>,
}Expand description
Parameters for the data_snapshot MCP tool.
All fields are optional; None means “all” (tables / scopes). The
dry_run flag, when true, returns inspection metadata without touching
any file or database state (Crux: dry_run zero-write guarantee).
Fields§
§table: Option<String>Target a single table by name. When None, all mounted tables in the
given scope (or all scopes) are snapshotted.
scope: Option<String>Restrict operation to "project" or "user" scope. When None,
all scopes are considered.
dry_run: Option<bool>When true, returns affects metadata (target tables, row counts,
would-purge counts) without creating, modifying, or deleting any
file or database state (Crux: dry_run zero-write guarantee).
upload: Option<bool>When true, each written snapshot is additionally uploaded to the
S3-compatible destination configured via MINI_APP_S3_* environment
variables (requires the s3-upload cargo feature).
Configuration is validated before any snapshot is written: a build
without the feature or incomplete env returns UPLOAD_NOT_CONFIGURED
immediately. Individual upload failures are non-fatal — local snapshot
and purge results stand, and failures are reported in the
upload_errors[] response field. Combined with dry_run=true, the
configuration is still validated but no upload is attempted.
Trait Implementations§
Source§impl Debug for DataSnapshotParams
impl Debug for DataSnapshotParams
Source§impl Default for DataSnapshotParams
impl Default for DataSnapshotParams
Source§fn default() -> DataSnapshotParams
fn default() -> DataSnapshotParams
Source§impl<'de> Deserialize<'de> for DataSnapshotParamswhere
DataSnapshotParams: Default,
impl<'de> Deserialize<'de> for DataSnapshotParamswhere
DataSnapshotParams: Default,
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 DataSnapshotParams
impl JsonSchema for DataSnapshotParams
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 more