#[non_exhaustive]pub struct MysqlLogPosition {
pub log_file: String,
pub log_position: Option<i32>,
/* private fields */
}
Expand description
MySQL log position
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.log_file: String
Required. The binary log file name.
log_position: Option<i32>
Optional. The position within the binary log file. Default is head of file.
Implementations§
Source§impl MysqlLogPosition
impl MysqlLogPosition
pub fn new() -> Self
Sourcepub fn set_log_file<T: Into<String>>(self, v: T) -> Self
pub fn set_log_file<T: Into<String>>(self, v: T) -> Self
Sets the value of log_file.
Sourcepub fn set_log_position<T>(self, v: T) -> Self
pub fn set_log_position<T>(self, v: T) -> Self
Sets the value of log_position.
Sourcepub fn set_or_clear_log_position<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_log_position<T>(self, v: Option<T>) -> Self
Sets or clears the value of log_position.
Trait Implementations§
Source§impl Clone for MysqlLogPosition
impl Clone for MysqlLogPosition
Source§fn clone(&self) -> MysqlLogPosition
fn clone(&self) -> MysqlLogPosition
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 MysqlLogPosition
impl Debug for MysqlLogPosition
Source§impl Default for MysqlLogPosition
impl Default for MysqlLogPosition
Source§fn default() -> MysqlLogPosition
fn default() -> MysqlLogPosition
Returns the “default value” for a type. Read more
Source§impl Message for MysqlLogPosition
impl Message for MysqlLogPosition
Source§impl PartialEq for MysqlLogPosition
impl PartialEq for MysqlLogPosition
impl StructuralPartialEq for MysqlLogPosition
Auto Trait Implementations§
impl Freeze for MysqlLogPosition
impl RefUnwindSafe for MysqlLogPosition
impl Send for MysqlLogPosition
impl Sync for MysqlLogPosition
impl Unpin for MysqlLogPosition
impl UnwindSafe for MysqlLogPosition
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