pub struct CustomScoringRule {
pub name: String,
pub pattern: String,
pub modifier: ScoreModifier,
}
Expand description
Custom scoring rule
Fields§
§name: String
Rule name/description
pattern: String
File pattern to match
modifier: ScoreModifier
Score modifier type
Trait Implementations§
Source§impl Clone for CustomScoringRule
impl Clone for CustomScoringRule
Source§fn clone(&self) -> CustomScoringRule
fn clone(&self) -> CustomScoringRule
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 CustomScoringRule
impl Debug for CustomScoringRule
Source§impl<'de> Deserialize<'de> for CustomScoringRule
impl<'de> Deserialize<'de> for CustomScoringRule
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
Source§impl Hash for CustomScoringRule
impl Hash for CustomScoringRule
Auto Trait Implementations§
impl Freeze for CustomScoringRule
impl RefUnwindSafe for CustomScoringRule
impl Send for CustomScoringRule
impl Sync for CustomScoringRule
impl Unpin for CustomScoringRule
impl UnwindSafe for CustomScoringRule
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