pub struct WriteFileParams {
pub remote_path: String,
pub new_content: String,
pub expected_sha256: Option<String>,
pub read_ticket: Option<String>,
pub dry_run: Option<bool>,
pub timeout_ms: Option<u64>,
}Expand description
Parameters for the write-file tool
Fields§
§remote_path: StringAbsolute remote file path to overwrite/create atomically
new_content: StringFull UTF-8 content that will replace the file atomically
expected_sha256: Option<String>Optional SHA-256 precondition for optimistic locking
read_ticket: Option<String>Opaque read-ticket from read-file response (required for editing non-empty existing files)
dry_run: Option<bool>Return a diff preview without mutating the remote file
timeout_ms: Option<u64>Optional timeout override in milliseconds
Trait Implementations§
Source§impl Debug for WriteFileParams
impl Debug for WriteFileParams
Source§impl<'de> Deserialize<'de> for WriteFileParams
impl<'de> Deserialize<'de> for WriteFileParams
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 WriteFileParams
impl JsonSchema for WriteFileParams
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 WriteFileParams
impl RefUnwindSafe for WriteFileParams
impl Send for WriteFileParams
impl Sync for WriteFileParams
impl Unpin for WriteFileParams
impl UnsafeUnpin for WriteFileParams
impl UnwindSafe for WriteFileParams
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