pub struct ConnectorDef {
pub id: String,
pub kind: String,
pub scope: ConnectorScope,
pub allow_override: Vec<String>,
pub default_params: ParamMap,
pub origin: Option<String>,
}Expand description
Connector definition containing metadata and default configuration.
This struct is used to describe a connector’s capabilities and defaults. It can be serialized/deserialized for configuration files.
§Serialization
kindis serialized as"type"default_paramsis serialized as"params"scopeandoriginare runtime-only fields (not serialized)
Fields§
§id: StringUnique identifier for this connector instance
kind: StringConnector type (e.g., “kafka”, “mysql”, “elasticsearch”)
scope: ConnectorScopeWhether this definition is for source or sink (runtime only)
allow_override: Vec<String>Parameter keys that can be overridden at runtime
default_params: ParamMapDefault parameter values
origin: Option<String>Origin identifier for tracking (runtime only)
Implementations§
Source§impl ConnectorDef
impl ConnectorDef
Sourcepub fn with_scope(self, scope: ConnectorScope) -> Self
pub fn with_scope(self, scope: ConnectorScope) -> Self
Set the scope and return self for chaining.
Trait Implementations§
Source§impl Clone for ConnectorDef
impl Clone for ConnectorDef
Source§fn clone(&self) -> ConnectorDef
fn clone(&self) -> ConnectorDef
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 ConnectorDef
impl Debug for ConnectorDef
Source§impl<'de> Deserialize<'de> for ConnectorDef
impl<'de> Deserialize<'de> for ConnectorDef
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 ConnectorDef
impl RefUnwindSafe for ConnectorDef
impl Send for ConnectorDef
impl Sync for ConnectorDef
impl Unpin for ConnectorDef
impl UnwindSafe for ConnectorDef
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