Struct hubcaps::pulls::FileDiff

source ·
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: Stringstatus: Stringadditions: u64deletions: u64changes: u64blob_url: Stringraw_url: Stringcontents_url: Stringpatch: Option<String>

patch is typically None for binary files

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.