pub struct ConnectorConfig {
pub location: String,
pub connector: String,
pub service: String,
}Expand description
Root connector configuration (location/connector/service) supplied by the user.
Fields§
§location: String§connector: String§service: StringImplementations§
Source§impl ConnectorConfig
impl ConnectorConfig
Sourcepub fn new(
location: impl Into<String>,
connector: impl Into<String>,
service: impl Into<String>,
) -> DataConnectResult<Self>
pub fn new( location: impl Into<String>, connector: impl Into<String>, service: impl Into<String>, ) -> DataConnectResult<Self>
Validates and constructs a new connector configuration.
Sourcepub fn validate(&self) -> DataConnectResult<()>
pub fn validate(&self) -> DataConnectResult<()>
Ensures mandatory fields are present.
Sourcepub fn identifier(&self) -> String
pub fn identifier(&self) -> String
Stable string identifier used as the component instance key.
Trait Implementations§
Source§impl Clone for ConnectorConfig
impl Clone for ConnectorConfig
Source§fn clone(&self) -> ConnectorConfig
fn clone(&self) -> ConnectorConfig
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 ConnectorConfig
impl Debug for ConnectorConfig
Source§impl<'de> Deserialize<'de> for ConnectorConfig
impl<'de> Deserialize<'de> for ConnectorConfig
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 Display for ConnectorConfig
impl Display for ConnectorConfig
Source§impl Hash for ConnectorConfig
impl Hash for ConnectorConfig
Source§impl PartialEq for ConnectorConfig
impl PartialEq for ConnectorConfig
Source§impl Serialize for ConnectorConfig
impl Serialize for ConnectorConfig
impl Eq for ConnectorConfig
impl StructuralPartialEq for ConnectorConfig
Auto Trait Implementations§
impl Freeze for ConnectorConfig
impl RefUnwindSafe for ConnectorConfig
impl Send for ConnectorConfig
impl Sync for ConnectorConfig
impl Unpin for ConnectorConfig
impl UnwindSafe for ConnectorConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.