pub struct Blind {
pub commit_msg_hook: bool,
pub strip_lines: Vec<String>,
pub vendor_tokens: Vec<String>,
pub on_leak: LeakPolicy,
pub seed: Option<u64>,
}Expand description
Blindness policy.
Commit messages and candidate summaries are always stripped of
attribution trailers and redacted — that is where signatures actually
appear. Blind::on_leak governs the patch body only, where blanket
redaction would corrupt the artifact under judgement.
Fields§
§commit_msg_hook: boolInstall a per-worktree commit-msg hook that deletes attribution
trailers before they can land in a candidate’s history.
strip_lines: Vec<String>Literal, case-insensitive substrings. A line containing any of them is
dropped from commit messages and summaries; the commit-msg hook is
generated from the same list.
vendor_tokens: Vec<String>Case-insensitive substrings that identify a vendor or model.
on_leak: LeakPolicyPolicy for vendor tokens found in the patch body.
seed: Option<u64>Seed for label assignment and per-judge presentation order. Derived from the run id when unset; set it to make a run reproducible.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Blind
impl<'de> Deserialize<'de> for Blind
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>,
Auto Trait Implementations§
impl Freeze for Blind
impl RefUnwindSafe for Blind
impl Send for Blind
impl Sync for Blind
impl Unpin for Blind
impl UnsafeUnpin for Blind
impl UnwindSafe for Blind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more