pub struct FileDiff {
pub sha: Option<String>,
pub filename: String,
pub status: String,
pub additions: u64,
pub deletions: u64,
pub changes: u64,
pub blob_url: String,
pub raw_url: String,
pub contents_url: String,
pub patch: Option<String>,
}
Fields
sha: Option<String>
sha from GitHub may be null when file mode changed without contents changing
filename: String
status: String
additions: u64
deletions: u64
changes: u64
blob_url: String
raw_url: String
contents_url: String
patch: Option<String>
patch is typically None for binary files
Trait Implementations
sourceimpl<'de> Deserialize<'de> for FileDiff
impl<'de> Deserialize<'de> for FileDiff
sourcefn 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 RefUnwindSafe for FileDiff
impl Send for FileDiff
impl Sync for FileDiff
impl Unpin for FileDiff
impl UnwindSafe for FileDiff
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more