pub struct HarnessUsageConfig {
pub content: HarnessUsageContentConfig,
pub harnesses: BTreeMap<HarnessId, HarnessConfig>,
}Expand description
Harness usage hook behavior configuration.
Fields§
§content: HarnessUsageContentConfigDefault content policy for all configured Harnesses.
harnesses: BTreeMap<HarnessId, HarnessConfig>Built-in enablement overrides and custom Harness definitions.
Implementations§
Source§impl HarnessUsageConfig
impl HarnessUsageConfig
Sourcepub fn enabled_for_harness(&self, harness_id: &str) -> bool
pub fn enabled_for_harness(&self, harness_id: &str) -> bool
Returns whether usage events are enabled for one Harness.
Sourcepub fn content_for_harness(&self, harness_id: &str) -> HarnessUsageContentConfig
pub fn content_for_harness(&self, harness_id: &str) -> HarnessUsageContentConfig
Returns the effective independent content policy for one Harness.
Trait Implementations§
Source§impl Clone for HarnessUsageConfig
impl Clone for HarnessUsageConfig
Source§impl Debug for HarnessUsageConfig
impl Debug for HarnessUsageConfig
Source§impl Default for HarnessUsageConfig
impl Default for HarnessUsageConfig
Source§impl<'de> Deserialize<'de> for HarnessUsageConfig
impl<'de> Deserialize<'de> for HarnessUsageConfig
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 HarnessUsageConfig
impl RefUnwindSafe for HarnessUsageConfig
impl Send for HarnessUsageConfig
impl Sync for HarnessUsageConfig
impl Unpin for HarnessUsageConfig
impl UnsafeUnpin for HarnessUsageConfig
impl UnwindSafe for HarnessUsageConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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