pub struct PullRequestChangedFile {
pub status: ChangedFileStatus,
pub old_path: Option<String>,
pub new_path: Option<String>,
pub additions: u64,
pub deletions: u64,
pub binary: bool,
pub patch_truncated: bool,
}Expand description
Source-free changed-file summary.
Fields§
§status: ChangedFileStatusNormalized provider status.
old_path: Option<String>Previous path for renames or deletions.
new_path: Option<String>Current path for additions, modifications, or renames.
additions: u64Added line count.
deletions: u64Deleted line count.
binary: boolWhether provider metadata identifies or strongly implies a binary file.
patch_truncated: boolWhether a provider patch was present but intentionally discarded.
Trait Implementations§
Source§impl Clone for PullRequestChangedFile
impl Clone for PullRequestChangedFile
Source§fn clone(&self) -> PullRequestChangedFile
fn clone(&self) -> PullRequestChangedFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PullRequestChangedFile
impl Debug for PullRequestChangedFile
Source§impl<'de> Deserialize<'de> for PullRequestChangedFile
impl<'de> Deserialize<'de> for PullRequestChangedFile
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
impl Eq for PullRequestChangedFile
Source§impl JsonSchema for PullRequestChangedFile
impl JsonSchema for PullRequestChangedFile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PullRequestChangedFile
impl PartialEq for PullRequestChangedFile
Source§impl Serialize for PullRequestChangedFile
impl Serialize for PullRequestChangedFile
impl StructuralPartialEq for PullRequestChangedFile
Auto Trait Implementations§
impl Freeze for PullRequestChangedFile
impl RefUnwindSafe for PullRequestChangedFile
impl Send for PullRequestChangedFile
impl Sync for PullRequestChangedFile
impl Unpin for PullRequestChangedFile
impl UnsafeUnpin for PullRequestChangedFile
impl UnwindSafe for PullRequestChangedFile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.