pub struct ContextFileRow {Show 13 fields
pub path: String,
pub module: String,
pub lang: String,
pub tokens: usize,
pub code: usize,
pub lines: usize,
pub bytes: usize,
pub value: usize,
pub rank_reason: String,
pub policy: InclusionPolicy,
pub effective_tokens: Option<usize>,
pub policy_reason: Option<String>,
pub classifications: Vec<FileClassification>,
}Fields§
§path: String§module: String§lang: String§tokens: usize§code: usize§lines: usize§bytes: usize§value: usize§rank_reason: String§policy: InclusionPolicyInclusion policy applied to this file.
effective_tokens: Option<usize>Effective token count when policy != Full (None means same as tokens).
policy_reason: Option<String>Reason for the applied policy.
classifications: Vec<FileClassification>File classifications detected by hygiene analysis.
Trait Implementations§
Source§impl Clone for ContextFileRow
impl Clone for ContextFileRow
Source§fn clone(&self) -> ContextFileRow
fn clone(&self) -> ContextFileRow
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 ContextFileRow
impl Debug for ContextFileRow
Source§impl<'de> Deserialize<'de> for ContextFileRow
impl<'de> Deserialize<'de> for ContextFileRow
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 ContextFileRow
impl RefUnwindSafe for ContextFileRow
impl Send for ContextFileRow
impl Sync for ContextFileRow
impl Unpin for ContextFileRow
impl UnsafeUnpin for ContextFileRow
impl UnwindSafe for ContextFileRow
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