File

Struct File 

Source
pub struct File {
Show 22 fields pub old_name: Option<String>, pub new_name: Option<String>, pub is_combined: bool, pub is_git_diff: bool, pub language: Option<String>, pub blocks: Vec<Block>, pub added_lines: usize, pub deleted_lines: usize, pub mode: Option<String>, pub old_mode: Option<Vec<String>>, pub new_mode: Option<String>, pub new_file_mode: Option<String>, pub deleted_file_mode: Option<String>, pub is_deleted: bool, pub is_new: bool, pub is_copy: bool, pub is_rename: bool, pub is_binary: bool, pub unchanged_percentage: Option<usize>, pub changed_percentage: Option<usize>, pub checksum_before: Option<Vec<String>>, pub checksum_after: Option<String>,
}

Fields§

§old_name: Option<String>§new_name: Option<String>§is_combined: bool§is_git_diff: bool§language: Option<String>§blocks: Vec<Block>§added_lines: usize§deleted_lines: usize§mode: Option<String>§old_mode: Option<Vec<String>>§new_mode: Option<String>§new_file_mode: Option<String>§deleted_file_mode: Option<String>§is_deleted: bool§is_new: bool§is_copy: bool§is_rename: bool§is_binary: bool§unchanged_percentage: Option<usize>§changed_percentage: Option<usize>§checksum_before: Option<Vec<String>>§checksum_after: Option<String>

Trait Implementations§

Source§

impl Debug for File

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for File

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for File

§

impl RefUnwindSafe for File

§

impl Send for File

§

impl Sync for File

§

impl Unpin for File

§

impl UnwindSafe for File

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.