pub struct Changefeed {
pub name: String,
pub mode: i32,
pub format: i32,
pub retention_period: Option<Duration>,
pub virtual_timestamps: bool,
pub initial_scan: bool,
pub attributes: HashMap<String, String>,
pub aws_region: String,
pub resolved_timestamps_interval: Option<Duration>,
pub topic_partitioning_settings: Option<PartitioningSettings>,
}
Fields§
§name: String
Name of the feed
mode: i32
Mode specifies the information that will be written to the feed
format: i32
Format of the data
retention_period: Option<Duration>
How long data in changefeed’s underlying topic should be stored
virtual_timestamps: bool
Emit virtual timestamps of changes along with data or not
initial_scan: bool
Initial scan will output the current state of the table first
attributes: HashMap<String, String>
Attributes. Total size is limited to 10 KB.
aws_region: String
Value that will be emitted in the awsRegion
field of the record in DYNAMODB_STREAMS_JSON format
resolved_timestamps_interval: Option<Duration>
Periodically emit resolved timestamps. If unspecified, resolved timestamps are not emitted.
topic_partitioning_settings: Option<PartitioningSettings>
Partitioning settings of underlying topic.
Implementations§
Source§impl Changefeed
impl Changefeed
Sourcepub fn mode(&self) -> Mode
pub fn mode(&self) -> Mode
Returns the enum value of mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn format(&self) -> Format
pub fn format(&self) -> Format
Returns the enum value of format
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_format(&mut self, value: Format)
pub fn set_format(&mut self, value: Format)
Sets format
to the provided enum value.
Trait Implementations§
Source§impl Clone for Changefeed
impl Clone for Changefeed
Source§fn clone(&self) -> Changefeed
fn clone(&self) -> Changefeed
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Changefeed
impl Debug for Changefeed
Source§impl Default for Changefeed
impl Default for Changefeed
Source§impl<'de> Deserialize<'de> for Changefeed
impl<'de> Deserialize<'de> for Changefeed
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>,
Source§impl Message for Changefeed
impl Message for Changefeed
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 Changefeed
impl PartialEq for Changefeed
Source§impl Serialize for Changefeed
impl Serialize for Changefeed
impl StructuralPartialEq for Changefeed
Auto Trait Implementations§
impl Freeze for Changefeed
impl RefUnwindSafe for Changefeed
impl Send for Changefeed
impl Sync for Changefeed
impl Unpin for Changefeed
impl UnwindSafe for Changefeed
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