#[non_exhaustive]pub struct CdcStrategy {
pub start_position: Option<StartPosition>,
/* private fields */
}
Expand description
The strategy that the stream uses for CDC replication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.start_position: Option<StartPosition>
The position to start reading from when starting, resuming, or recovering the stream. If not set, the system’s default value will be used.
Implementations§
Source§impl CdcStrategy
impl CdcStrategy
pub fn new() -> Self
Sourcepub fn set_start_position<T: Into<Option<StartPosition>>>(self, v: T) -> Self
pub fn set_start_position<T: Into<Option<StartPosition>>>(self, v: T) -> Self
Sets the value of start_position.
Note that all the setters affecting start_position
are mutually
exclusive.
Sourcepub fn most_recent_start_position(
&self,
) -> Option<&Box<MostRecentStartPosition>>
pub fn most_recent_start_position( &self, ) -> Option<&Box<MostRecentStartPosition>>
The value of start_position
if it holds a MostRecentStartPosition
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_most_recent_start_position<T: Into<Box<MostRecentStartPosition>>>(
self,
v: T,
) -> Self
pub fn set_most_recent_start_position<T: Into<Box<MostRecentStartPosition>>>( self, v: T, ) -> Self
Sets the value of start_position
to hold a MostRecentStartPosition
.
Note that all the setters affecting start_position
are
mutually exclusive.
Sourcepub fn next_available_start_position(
&self,
) -> Option<&Box<NextAvailableStartPosition>>
pub fn next_available_start_position( &self, ) -> Option<&Box<NextAvailableStartPosition>>
The value of start_position
if it holds a NextAvailableStartPosition
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_next_available_start_position<T: Into<Box<NextAvailableStartPosition>>>(
self,
v: T,
) -> Self
pub fn set_next_available_start_position<T: Into<Box<NextAvailableStartPosition>>>( self, v: T, ) -> Self
Sets the value of start_position
to hold a NextAvailableStartPosition
.
Note that all the setters affecting start_position
are
mutually exclusive.
Sourcepub fn specific_start_position(&self) -> Option<&Box<SpecificStartPosition>>
pub fn specific_start_position(&self) -> Option<&Box<SpecificStartPosition>>
The value of start_position
if it holds a SpecificStartPosition
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_specific_start_position<T: Into<Box<SpecificStartPosition>>>(
self,
v: T,
) -> Self
pub fn set_specific_start_position<T: Into<Box<SpecificStartPosition>>>( self, v: T, ) -> Self
Sets the value of start_position
to hold a SpecificStartPosition
.
Note that all the setters affecting start_position
are
mutually exclusive.
Trait Implementations§
Source§impl Clone for CdcStrategy
impl Clone for CdcStrategy
Source§fn clone(&self) -> CdcStrategy
fn clone(&self) -> CdcStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more