pub struct BinlogSource {
pub keyspace: String,
pub shard: String,
pub tablet_type: i32,
pub key_range: Option<KeyRange>,
pub tables: Vec<String>,
pub filter: Option<Filter>,
pub on_ddl: i32,
pub external_mysql: String,
pub stop_after_copy: bool,
pub external_cluster: String,
pub source_time_zone: String,
pub target_time_zone: String,
}Expand description
BinlogSource specifies the source and filter parameters for Filtered Replication. KeyRange and Tables are legacy. Filter is the new way to specify the filtering rules.
Fields§
§keyspace: Stringthe source keyspace
shard: Stringthe source shard
tablet_type: i32the source tablet type
key_range: Option<KeyRange>KeyRange is set if the request is for a keyrange
tables: Vec<String>Tables is set if the request is for a list of tables
filter: Option<Filter>Filter is set if we’re using the generalized representation for the filter.
on_ddl: i32OnDdl specifies the action to be taken when a DDL is encountered.
external_mysql: StringSource is an external mysql. This attribute should be set to the username to use in the connection
stop_after_copy: boolStopAfterCopy specifies if vreplication should be stopped after copying is done.
external_cluster: StringExternalCluster is the name of the mounted cluster which has the source keyspace/db for this workflow it is of the type <cluster_type.cluster_name>
source_time_zone: StringSourceTimeZone is the time zone in which datetimes on the source were stored, provided as an option in MoveTables
target_time_zone: StringTargetTimeZone is not currently specifiable by the user, defaults to UTC for the forward workflows and to the SourceTimeZone in reverse workflows
Implementations§
Source§impl BinlogSource
impl BinlogSource
Sourcepub fn tablet_type(&self) -> TabletType
pub fn tablet_type(&self) -> TabletType
Returns the enum value of tablet_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_tablet_type(&mut self, value: TabletType)
pub fn set_tablet_type(&mut self, value: TabletType)
Sets tablet_type to the provided enum value.
Sourcepub fn on_ddl(&self) -> OnDdlAction
pub fn on_ddl(&self) -> OnDdlAction
Returns the enum value of on_ddl, or the default if the field is set to an invalid enum value.
Sourcepub fn set_on_ddl(&mut self, value: OnDdlAction)
pub fn set_on_ddl(&mut self, value: OnDdlAction)
Sets on_ddl to the provided enum value.
Trait Implementations§
Source§impl Clone for BinlogSource
impl Clone for BinlogSource
Source§fn clone(&self) -> BinlogSource
fn clone(&self) -> BinlogSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BinlogSource
impl Debug for BinlogSource
Source§impl Default for BinlogSource
impl Default for BinlogSource
Source§impl Message for BinlogSource
impl Message for BinlogSource
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for BinlogSource
impl PartialEq for BinlogSource
impl StructuralPartialEq for BinlogSource
Auto Trait Implementations§
impl Freeze for BinlogSource
impl RefUnwindSafe for BinlogSource
impl Send for BinlogSource
impl Sync for BinlogSource
impl Unpin for BinlogSource
impl UnwindSafe for BinlogSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request