pub struct SubstrateFile {
pub path: String,
pub lang: String,
pub code: usize,
pub lines: usize,
pub bytes: usize,
pub tokens: usize,
pub module: String,
pub in_diff: bool,
}Expand description
A single file in the substrate.
Fields§
§path: StringRepo-relative path (forward slashes).
lang: StringDetected language.
code: usizeLines of code.
lines: usizeTotal lines.
bytes: usizeFile size in bytes.
tokens: usizeEstimated token count.
module: StringPre-computed module key.
in_diff: boolWhether this file was modified in the current diff range.
Trait Implementations§
Source§impl Clone for SubstrateFile
impl Clone for SubstrateFile
Source§fn clone(&self) -> SubstrateFile
fn clone(&self) -> SubstrateFile
Returns a duplicate of the value. Read more
1.0.0 · 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 SubstrateFile
impl Debug for SubstrateFile
Source§impl<'de> Deserialize<'de> for SubstrateFile
impl<'de> Deserialize<'de> for SubstrateFile
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 SubstrateFile
impl RefUnwindSafe for SubstrateFile
impl Send for SubstrateFile
impl Sync for SubstrateFile
impl Unpin for SubstrateFile
impl UnsafeUnpin for SubstrateFile
impl UnwindSafe for SubstrateFile
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