pub struct CandidateFeatures {
pub subject: String,
pub touched_paths: Vec<RelativePath>,
pub lines_added: u32,
pub lines_removed: u32,
pub parent_count: NonZeroU32,
}Expand description
The scorer’s full input: everything extracted from one walked commit. Serialisable so the labeled corpus stores features, not SHAs, and the F1 gate runs hermetically in CI.
Fields§
§subject: String§touched_paths: Vec<RelativePath>§lines_added: u32§lines_removed: u32§parent_count: NonZeroU32Trait Implementations§
Source§impl Clone for CandidateFeatures
impl Clone for CandidateFeatures
Source§fn clone(&self) -> CandidateFeatures
fn clone(&self) -> CandidateFeatures
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 CandidateFeatures
impl Debug for CandidateFeatures
Source§impl<'de> Deserialize<'de> for CandidateFeatures
impl<'de> Deserialize<'de> for CandidateFeatures
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 CandidateFeatures
Source§impl PartialEq for CandidateFeatures
impl PartialEq for CandidateFeatures
Source§impl Serialize for CandidateFeatures
impl Serialize for CandidateFeatures
impl StructuralPartialEq for CandidateFeatures
Auto Trait Implementations§
impl Freeze for CandidateFeatures
impl RefUnwindSafe for CandidateFeatures
impl Send for CandidateFeatures
impl Sync for CandidateFeatures
impl Unpin for CandidateFeatures
impl UnsafeUnpin for CandidateFeatures
impl UnwindSafe for CandidateFeatures
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