#[non_exhaustive]pub struct ChangeStreamConfig {
pub retention_period: Option<Duration>,
/* private fields */
}Expand description
Change stream configuration.
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.retention_period: Option<Duration>How long the change stream should be retained. Change stream data older than the retention period will not be returned when reading the change stream from the table. Values must be at least 1 day and at most 7 days, and will be truncated to microsecond granularity.
Implementations§
Source§impl ChangeStreamConfig
impl ChangeStreamConfig
pub fn new() -> Self
Sourcepub fn set_retention_period<T>(self, v: T) -> Self
pub fn set_retention_period<T>(self, v: T) -> Self
Sets the value of retention_period.
§Example
ⓘ
use wkt::Duration;
let x = ChangeStreamConfig::new().set_retention_period(Duration::default()/* use setters */);Sourcepub fn set_or_clear_retention_period<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_retention_period<T>(self, v: Option<T>) -> Self
Sets or clears the value of retention_period.
§Example
ⓘ
use wkt::Duration;
let x = ChangeStreamConfig::new().set_or_clear_retention_period(Some(Duration::default()/* use setters */));
let x = ChangeStreamConfig::new().set_or_clear_retention_period(None::<Duration>);Trait Implementations§
Source§impl Clone for ChangeStreamConfig
impl Clone for ChangeStreamConfig
Source§fn clone(&self) -> ChangeStreamConfig
fn clone(&self) -> ChangeStreamConfig
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 ChangeStreamConfig
impl Debug for ChangeStreamConfig
Source§impl Default for ChangeStreamConfig
impl Default for ChangeStreamConfig
Source§fn default() -> ChangeStreamConfig
fn default() -> ChangeStreamConfig
Returns the “default value” for a type. Read more
Source§impl Message for ChangeStreamConfig
impl Message for ChangeStreamConfig
Source§impl PartialEq for ChangeStreamConfig
impl PartialEq for ChangeStreamConfig
impl StructuralPartialEq for ChangeStreamConfig
Auto Trait Implementations§
impl Freeze for ChangeStreamConfig
impl RefUnwindSafe for ChangeStreamConfig
impl Send for ChangeStreamConfig
impl Sync for ChangeStreamConfig
impl Unpin for ChangeStreamConfig
impl UnwindSafe for ChangeStreamConfig
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