pub struct FileDiff {
pub sha: Option<String>,
pub path: String,
pub status: Option<String>,
pub patch: Option<String>,
pub additions: Option<String>,
pub deletions: Option<String>,
pub changes: Option<String>,
pub raw_url: Option<String>,
pub blob_url: Option<String>,
}Expand description
One changed file from GET /repos/{owner}/{repo}/pulls/{number}/files.
path is the canonical JSON field name (matches gh pr view --json files).
Gitee’s v5 API returns filename, so deserialization also accepts that
alias for forward-compatibility with the live response shape.
Fields§
§sha: Option<String>§path: String§status: Option<String>§patch: Option<String>§additions: Option<String>§deletions: Option<String>§changes: Option<String>Total changed lines (additions + deletions). Gitee doesn’t always
return it, hence Option; populated when present.
raw_url: Option<String>§blob_url: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileDiff
impl<'de> Deserialize<'de> for FileDiff
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 FileDiff
impl RefUnwindSafe for FileDiff
impl Send for FileDiff
impl Sync for FileDiff
impl Unpin for FileDiff
impl UnsafeUnpin 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