#[non_exhaustive]pub struct FileDiff {
pub name: String,
pub action: Action,
pub sha: String,
pub patch: String,
/* private fields */
}Expand description
Metadata of a FileDiff. FileDiff represents a single file diff in a pull request.
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.name: StringOutput only. The name of the file.
action: ActionOutput only. The action taken on the file (eg. added, modified, deleted).
sha: StringOutput only. The commit pointing to the file changes.
patch: StringOutput only. The git patch containing the file changes.
Implementations§
Trait Implementations§
impl StructuralPartialEq for FileDiff
Auto Trait Implementations§
impl Freeze for FileDiff
impl RefUnwindSafe for FileDiff
impl Send for FileDiff
impl Sync for FileDiff
impl Unpin for FileDiff
impl UnwindSafe for FileDiff
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