pub struct PipelineConfig {
pub pipeline: PipelineSection,
pub checkpoint: CheckpointSection,
pub backpressure: BackpressureSection,
pub metrics: MetricsSection,
pub source: ComponentConfig,
pub deserializer: Option<ComponentConfig>,
pub sink: ComponentConfig,
}Expand description
Root of a pipeline’s configuration file.
One process runs one pipeline; one file configures one process.
Fields§
§pipeline: PipelineSectionIdentity and thread budget.
checkpoint: CheckpointSectionWatermark commit policy.
backpressure: BackpressureSectionIn-flight budget and pause/resume hysteresis.
metrics: MetricsSectionExporter selection and observability knobs.
source: ComponentConfigThe source component (opaque body).
deserializer: Option<ComponentConfig>Optional deserializer component (opaque body). Sources that emit ready-made records need none.
sink: ComponentConfigThe sink component (opaque body).
Implementations§
Source§impl PipelineConfig
impl PipelineConfig
Sourcepub fn from_str(text: &str) -> Result<Self, ConfigError>
pub fn from_str(text: &str) -> Result<Self, ConfigError>
Load from YAML text: interpolate ${VAR} forms against the process
environment, parse, and validate.
Sourcepub fn from_path(path: &Path) -> Result<Self, ConfigError>
pub fn from_path(path: &Path) -> Result<Self, ConfigError>
Load from a YAML file (read, interpolate, parse, validate).
Sourcepub fn validate(&self) -> Result<(), ConfigError>
pub fn validate(&self) -> Result<(), ConfigError>
Cross-field validation, run automatically by the loaders. Public so
programmatically built configs (tests, etl-test) get the same
checks.
Trait Implementations§
Source§impl Debug for PipelineConfig
impl Debug for PipelineConfig
Source§impl<'de> Deserialize<'de> for PipelineConfig
impl<'de> Deserialize<'de> for PipelineConfig
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 PartialEq for PipelineConfig
impl PartialEq for PipelineConfig
Source§fn eq(&self, other: &PipelineConfig) -> bool
fn eq(&self, other: &PipelineConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PipelineConfig
Auto Trait Implementations§
impl Freeze for PipelineConfig
impl RefUnwindSafe for PipelineConfig
impl Send for PipelineConfig
impl Sync for PipelineConfig
impl Unpin for PipelineConfig
impl UnsafeUnpin for PipelineConfig
impl UnwindSafe for PipelineConfig
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