[][src]Struct diff2html::parse::File

pub struct File {
    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: boolis_git_diff: boollanguage: Option<String>blocks: Vec<Block>added_lines: usizedeleted_lines: usizemode: Option<String>old_mode: Option<Vec<String>>new_mode: Option<String>new_file_mode: Option<String>deleted_file_mode: Option<String>is_deleted: boolis_new: boolis_copy: boolis_rename: boolis_binary: boolunchanged_percentage: Option<usize>changed_percentage: Option<usize>checksum_before: Option<Vec<String>>checksum_after: Option<String>

Trait Implementations

impl Debug for File[src]

impl Serialize for File[src]

Auto Trait Implementations

impl Send for File

impl Sync for File

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.