pub struct KothConfig {
pub file: FileConfig,
pub hills: HillsConfig,
pub hills_ms2: Option<HillsMs2Overrides>,
pub features: FeaturesConfig,
pub scoring: ScoringConfig,
pub output: OutputConfig,
}Fields§
§file: FileConfig§hills: HillsConfig§hills_ms2: Option<HillsMs2Overrides>Optional per-field overrides for MS2 (DIA fragment) hill detection.
Absent (None) ⇒ MS2 hills use [hills] verbatim (byte-identical to the
pre-existing behavior). Present ⇒ MS2 hill detection inherits [hills]
and applies only the fields set here. See KothConfig::ms2_hills.
features: FeaturesConfig§scoring: ScoringConfig§output: OutputConfigImplementations§
Source§impl KothConfig
impl KothConfig
pub fn from_toml(path: &Path) -> Result<Self, Error>
pub fn to_toml_string(&self) -> Result<String, Error>
Sourcepub fn ms2_hills(&self) -> HillsConfig
pub fn ms2_hills(&self) -> HillsConfig
Resolve the HillsConfig to use for MS2 (DIA fragment) hill detection.
When [hills_ms2] is absent this returns self.hills unchanged — the MS2
path is byte-for-byte identical to using [hills] directly. When present,
MS2 hill detection inherits every [hills] value and overwrites only the
fields set under [hills_ms2] (see HillsMs2Overrides).
Pipeline entry points (run_pipeline_with_ms2, run_pipeline_streaming,
…) and the binary route MS2 detection through this method, so a single
KothConfig drives MS1 and MS2 hill settings independently.
Trait Implementations§
Source§impl Clone for KothConfig
impl Clone for KothConfig
Source§impl Debug for KothConfig
impl Debug for KothConfig
Source§impl Default for KothConfig
impl Default for KothConfig
Source§impl<'de> Deserialize<'de> for KothConfigwhere
KothConfig: Default,
impl<'de> Deserialize<'de> for KothConfigwhere
KothConfig: Default,
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 KothConfig
impl RefUnwindSafe for KothConfig
impl Send for KothConfig
impl Sync for KothConfig
impl Unpin for KothConfig
impl UnsafeUnpin for KothConfig
impl UnwindSafe for KothConfig
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> 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