pub struct WeaverConfig {
pub enabled: bool,
pub registry_path: String,
pub otlp_port: u16,
pub admin_port: u16,
pub output_dir: String,
pub stream: bool,
pub fail_fast: bool,
pub validation: Option<ValidationConfig>,
pub eighty_twenty: Option<EightyTwentyConfig>,
pub collector: Option<CollectorConfig>,
pub reports: Option<ReportsConfig>,
pub performance: Option<PerformanceConfig>,
}Expand description
Weaver live-check configuration (v1.3.0)
Enables Weaver validation for test execution when present in TOML. Supports multiple validation modes and comprehensive telemetry coverage tracking.
Fields§
§enabled: boolEnable Weaver live-checking Default: true if [weaver] section is present
registry_path: StringRegistry path for Weaver schemas Default: “registry” (relative to installation)
otlp_port: u16OTLP gRPC port (0 = auto-discover) Default: 0 (auto-discover) Range: 0 or 1024-65535
admin_port: u16Admin port for control interface (0 = auto-discover) Default: 0 (auto-discover) Range: 0 or 1024-65535
output_dir: StringOutput directory for validation reports Default: “./validation_output”
stream: boolEnable streaming output (real-time feedback) Default: false
fail_fast: boolFail fast on first violation Default: false
validation: Option<ValidationConfig>Validation configuration
eighty_twenty: Option<EightyTwentyConfig>80/20 validation mode configuration
collector: Option<CollectorConfig>Collector management configuration
reports: Option<ReportsConfig>Report generation configuration
performance: Option<PerformanceConfig>Performance tuning configuration
Implementations§
Source§impl WeaverConfig
impl WeaverConfig
Sourcepub fn to_telemetry_config(&self) -> Result<WeaverConfig>
pub fn to_telemetry_config(&self) -> Result<WeaverConfig>
Convert to telemetry::WeaverConfig (for backward compatibility)
Trait Implementations§
Source§impl Clone for WeaverConfig
impl Clone for WeaverConfig
Source§fn clone(&self) -> WeaverConfig
fn clone(&self) -> WeaverConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WeaverConfig
impl Debug for WeaverConfig
Source§impl Default for WeaverConfig
impl Default for WeaverConfig
Source§impl<'de> Deserialize<'de> for WeaverConfig
impl<'de> Deserialize<'de> for WeaverConfig
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 WeaverConfig
impl RefUnwindSafe for WeaverConfig
impl Send for WeaverConfig
impl Sync for WeaverConfig
impl Unpin for WeaverConfig
impl UnwindSafe for WeaverConfig
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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request