pub struct MysqlAttributes {
pub host: String,
pub port: i32,
pub database: String,
pub username: String,
pub password: String,
pub table_name: String,
pub max_retry: i32,
pub retry_interval_sec: i32,
}Expand description
Configuration for delivering stream batches to a MySQL database.
Fields§
§host: StringDatabase host.
port: i32Database port.
database: StringDatabase name.
username: StringUsername used to authenticate.
password: StringPassword used to authenticate.
table_name: StringDestination table for inserted rows.
max_retry: i32Maximum number of retry attempts for a failed write.
retry_interval_sec: i32Seconds to wait between retry attempts.
Trait Implementations§
Source§impl Clone for MysqlAttributes
impl Clone for MysqlAttributes
Source§fn clone(&self) -> MysqlAttributes
fn clone(&self) -> MysqlAttributes
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 MysqlAttributes
impl Debug for MysqlAttributes
Source§impl<'de> Deserialize<'de> for MysqlAttributes
impl<'de> Deserialize<'de> for MysqlAttributes
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 MysqlAttributes
impl RefUnwindSafe for MysqlAttributes
impl Send for MysqlAttributes
impl Sync for MysqlAttributes
impl Unpin for MysqlAttributes
impl UnsafeUnpin for MysqlAttributes
impl UnwindSafe for MysqlAttributes
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