pub struct DataSnapshotParams {
pub table: Option<String>,
pub scope: Option<String>,
pub dry_run: 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).
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for DataSnapshotParams
impl JsonSchema for DataSnapshotParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DataSnapshotParams
impl RefUnwindSafe for DataSnapshotParams
impl Send for DataSnapshotParams
impl Sync for DataSnapshotParams
impl Unpin for DataSnapshotParams
impl UnsafeUnpin for DataSnapshotParams
impl UnwindSafe for DataSnapshotParams
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