pub struct SinkInOneOf2 {
pub brokers: String,
pub sasl_password: Option<Option<String>>,
pub sasl_username: Option<Option<String>>,
pub security_protocol: KafkaSecurityProtocolType,
pub topic: String,
pub type: Type,
}
Fields§
§brokers: String
§sasl_password: Option<Option<String>>
Password for SASL, if security_protocol
is sasl-ssl
.
sasl_username: Option<Option<String>>
Username for SASL, if security_protocol
is sasl-ssl
.
security_protocol: KafkaSecurityProtocolType
§topic: String
§type: Type
Implementations§
Source§impl SinkInOneOf2
impl SinkInOneOf2
pub fn new( brokers: String, security_protocol: KafkaSecurityProtocolType, topic: String, type: Type, ) -> SinkInOneOf2
Trait Implementations§
Source§impl Clone for SinkInOneOf2
impl Clone for SinkInOneOf2
Source§fn clone(&self) -> SinkInOneOf2
fn clone(&self) -> SinkInOneOf2
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 SinkInOneOf2
impl Debug for SinkInOneOf2
Source§impl Default for SinkInOneOf2
impl Default for SinkInOneOf2
Source§fn default() -> SinkInOneOf2
fn default() -> SinkInOneOf2
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SinkInOneOf2
impl<'de> Deserialize<'de> for SinkInOneOf2
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 SinkInOneOf2
impl PartialEq for SinkInOneOf2
Source§impl Serialize for SinkInOneOf2
impl Serialize for SinkInOneOf2
impl StructuralPartialEq for SinkInOneOf2
Auto Trait Implementations§
impl Freeze for SinkInOneOf2
impl RefUnwindSafe for SinkInOneOf2
impl Send for SinkInOneOf2
impl Sync for SinkInOneOf2
impl Unpin for SinkInOneOf2
impl UnwindSafe for SinkInOneOf2
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