pub struct HttpSourceConfig {
pub host: String,
pub port: u16,
pub endpoint: Option<String>,
pub timeout_ms: u64,
pub adaptive_max_batch_size: Option<usize>,
pub adaptive_min_batch_size: Option<usize>,
pub adaptive_max_wait_ms: Option<u64>,
pub adaptive_min_wait_ms: Option<u64>,
pub adaptive_window_secs: Option<u64>,
pub adaptive_enabled: Option<bool>,
pub webhooks: Option<WebhookConfig>,
}Expand description
HTTP source configuration
This config only contains HTTP-specific settings. Bootstrap provider configuration (database, user, password, tables, etc.) should be provided via the source’s generic properties map.
Fields§
§host: StringHTTP host
port: u16HTTP port
endpoint: Option<String>Optional endpoint path
timeout_ms: u64Request timeout in milliseconds
adaptive_max_batch_size: Option<usize>Adaptive batching: maximum batch size
adaptive_min_batch_size: Option<usize>Adaptive batching: minimum batch size
adaptive_max_wait_ms: Option<u64>Adaptive batching: maximum wait time in milliseconds
adaptive_min_wait_ms: Option<u64>Adaptive batching: minimum wait time in milliseconds
adaptive_window_secs: Option<u64>Adaptive batching: throughput window in seconds
adaptive_enabled: Option<bool>Whether adaptive batching is enabled
webhooks: Option<WebhookConfig>Webhook configuration (enables webhook mode when present)
Implementations§
Source§impl HttpSourceConfig
Returns true if webhook mode is enabled
impl HttpSourceConfig
Returns true if webhook mode is enabled
Sourcepub fn is_webhook_mode(&self) -> bool
pub fn is_webhook_mode(&self) -> bool
Check if webhook mode is enabled
Trait Implementations§
Source§impl Clone for HttpSourceConfig
impl Clone for HttpSourceConfig
Source§fn clone(&self) -> HttpSourceConfig
fn clone(&self) -> HttpSourceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HttpSourceConfig
impl Debug for HttpSourceConfig
Source§impl<'de> Deserialize<'de> for HttpSourceConfig
impl<'de> Deserialize<'de> for HttpSourceConfig
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 HttpSourceConfig
impl PartialEq for HttpSourceConfig
Source§impl Serialize for HttpSourceConfig
impl Serialize for HttpSourceConfig
impl StructuralPartialEq for HttpSourceConfig
Auto Trait Implementations§
impl Freeze for HttpSourceConfig
impl RefUnwindSafe for HttpSourceConfig
impl Send for HttpSourceConfig
impl Sync for HttpSourceConfig
impl Unpin for HttpSourceConfig
impl UnsafeUnpin for HttpSourceConfig
impl UnwindSafe for HttpSourceConfig
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