pub struct DynamicSource {
pub id: String,
pub source_type: SourceType,
pub refresh: RefreshPolicy,
pub timeout: Option<Duration>,
pub on_error: ErrorPolicy,
pub required: bool,
pub default: Option<Value>,
}Expand description
A dynamic source declared in the pipeline’s sources section.
Each source describes how to fetch external data that can be referenced
by ${source.<id>} expressions anywhere in the pipeline YAML.
Fields§
§id: StringUnique identifier for this source, referenced in ${source.<id>} expressions.
source_type: SourceTypeThe type-specific configuration for fetching data.
refresh: RefreshPolicyHow often the source data should be refreshed.
timeout: Option<Duration>Maximum time to wait for a fetch to complete.
on_error: ErrorPolicyWhat to do when a fetch fails.
required: boolWhether the daemon must resolve this source before processing events.
default: Option<Value>Fallback value if the source cannot be resolved.
Trait Implementations§
Source§impl Clone for DynamicSource
impl Clone for DynamicSource
Source§fn clone(&self) -> DynamicSource
fn clone(&self) -> DynamicSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DynamicSource
impl Debug for DynamicSource
Source§impl PartialEq for DynamicSource
impl PartialEq for DynamicSource
Source§fn eq(&self, other: &DynamicSource) -> bool
fn eq(&self, other: &DynamicSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DynamicSource
Auto Trait Implementations§
impl Freeze for DynamicSource
impl RefUnwindSafe for DynamicSource
impl Send for DynamicSource
impl Sync for DynamicSource
impl Unpin for DynamicSource
impl UnsafeUnpin for DynamicSource
impl UnwindSafe for DynamicSource
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