#[non_exhaustive]pub struct SingleClusterRouting {
pub cluster_id: String,
pub allow_transactional_writes: bool,
/* private fields */
}Expand description
Unconditionally routes all read/write requests to a specific cluster. This option preserves read-your-writes consistency but does not improve availability.
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.cluster_id: StringThe cluster to which read/write requests should be routed.
allow_transactional_writes: boolWhether or not CheckAndMutateRow and ReadModifyWriteRow requests are
allowed by this app profile. It is unsafe to send these requests to
the same table/row/column in multiple clusters.
Implementations§
Source§impl SingleClusterRouting
impl SingleClusterRouting
pub fn new() -> Self
Sourcepub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_id.
Sourcepub fn set_allow_transactional_writes<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_transactional_writes<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_transactional_writes.
Trait Implementations§
Source§impl Clone for SingleClusterRouting
impl Clone for SingleClusterRouting
Source§fn clone(&self) -> SingleClusterRouting
fn clone(&self) -> SingleClusterRouting
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 SingleClusterRouting
impl Debug for SingleClusterRouting
Source§impl Default for SingleClusterRouting
impl Default for SingleClusterRouting
Source§fn default() -> SingleClusterRouting
fn default() -> SingleClusterRouting
Returns the “default value” for a type. Read more
Source§impl Message for SingleClusterRouting
impl Message for SingleClusterRouting
Source§impl PartialEq for SingleClusterRouting
impl PartialEq for SingleClusterRouting
impl StructuralPartialEq for SingleClusterRouting
Auto Trait Implementations§
impl Freeze for SingleClusterRouting
impl RefUnwindSafe for SingleClusterRouting
impl Send for SingleClusterRouting
impl Sync for SingleClusterRouting
impl Unpin for SingleClusterRouting
impl UnwindSafe for SingleClusterRouting
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