pub struct WorkspaceDiffFileChange {
pub change_type: WorkspaceDiffFileChangeType,
pub diff: String,
pub is_truncated: Option<bool>,
pub old_path: Option<String>,
pub path: String,
}Expand description
A single changed file and its unified diff.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§change_type: WorkspaceDiffFileChangeTypeType of change represented by this file diff.
diff: StringUnified diff content for the file. Empty when the diff was truncated.
is_truncated: Option<bool>Whether the diff content was omitted because it exceeded the per-file size limit.
old_path: Option<String>Original file path for renamed files.
path: StringPath to the changed file, relative to the workspace root.
Trait Implementations§
Source§impl Clone for WorkspaceDiffFileChange
impl Clone for WorkspaceDiffFileChange
Source§fn clone(&self) -> WorkspaceDiffFileChange
fn clone(&self) -> WorkspaceDiffFileChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceDiffFileChange
impl Debug for WorkspaceDiffFileChange
Source§impl Default for WorkspaceDiffFileChange
impl Default for WorkspaceDiffFileChange
Source§fn default() -> WorkspaceDiffFileChange
fn default() -> WorkspaceDiffFileChange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceDiffFileChange
impl<'de> Deserialize<'de> for WorkspaceDiffFileChange
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 WorkspaceDiffFileChange
impl RefUnwindSafe for WorkspaceDiffFileChange
impl Send for WorkspaceDiffFileChange
impl Sync for WorkspaceDiffFileChange
impl Unpin for WorkspaceDiffFileChange
impl UnsafeUnpin for WorkspaceDiffFileChange
impl UnwindSafe for WorkspaceDiffFileChange
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