pub struct DiffContent {
pub path: String,
pub patch: String,
}Expand description
Content for a diff display segment.
Fields§
§path: StringFile path the diff applies to.
patch: StringUnified diff string.
Trait Implementations§
Source§impl Clone for DiffContent
impl Clone for DiffContent
Source§impl Debug for DiffContent
impl Debug for DiffContent
Source§impl<'de> Deserialize<'de> for DiffContent
impl<'de> Deserialize<'de> for DiffContent
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 DiffContent
impl RefUnwindSafe for DiffContent
impl Send for DiffContent
impl Sync for DiffContent
impl Unpin for DiffContent
impl UnsafeUnpin for DiffContent
impl UnwindSafe for DiffContent
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