#[non_exhaustive]pub struct FetchFileDiffResponse {
pub formatted_diff: String,
/* private fields */
}Expand description
FetchFileDiff response message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.formatted_diff: StringThe raw formatted Git diff for the file.
Implementations§
Source§impl FetchFileDiffResponse
impl FetchFileDiffResponse
pub fn new() -> Self
Sourcepub fn set_formatted_diff<T: Into<String>>(self, v: T) -> Self
pub fn set_formatted_diff<T: Into<String>>(self, v: T) -> Self
Sets the value of formatted_diff.
Trait Implementations§
Source§impl Clone for FetchFileDiffResponse
impl Clone for FetchFileDiffResponse
Source§fn clone(&self) -> FetchFileDiffResponse
fn clone(&self) -> FetchFileDiffResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 FetchFileDiffResponse
impl Debug for FetchFileDiffResponse
Source§impl Default for FetchFileDiffResponse
impl Default for FetchFileDiffResponse
Source§fn default() -> FetchFileDiffResponse
fn default() -> FetchFileDiffResponse
Returns the “default value” for a type. Read more
Source§impl Message for FetchFileDiffResponse
impl Message for FetchFileDiffResponse
Source§impl PartialEq for FetchFileDiffResponse
impl PartialEq for FetchFileDiffResponse
impl StructuralPartialEq for FetchFileDiffResponse
Auto Trait Implementations§
impl Freeze for FetchFileDiffResponse
impl RefUnwindSafe for FetchFileDiffResponse
impl Send for FetchFileDiffResponse
impl Sync for FetchFileDiffResponse
impl Unpin for FetchFileDiffResponse
impl UnwindSafe for FetchFileDiffResponse
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