pub struct ClientContext {
pub session_token: Option<String>,
pub read: Option<ReadConsistency>,
pub write: Option<WriteConsistency>,
pub preferred_region: Option<RegionId>,
}Expand description
Optional context carried by every request.
Fields§
§session_token: Option<String>Opaque session token from 0.47 causal+.
read: Option<ReadConsistency>Requested read consistency.
write: Option<WriteConsistency>Requested write consistency.
preferred_region: Option<RegionId>Preferred region for routing.
Trait Implementations§
Source§impl Clone for ClientContext
impl Clone for ClientContext
Source§fn clone(&self) -> ClientContext
fn clone(&self) -> ClientContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientContext
impl Debug for ClientContext
Source§impl Default for ClientContext
impl Default for ClientContext
Source§fn default() -> ClientContext
fn default() -> ClientContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClientContext
impl<'de> Deserialize<'de> for ClientContext
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientContext
Source§impl PartialEq for ClientContext
impl PartialEq for ClientContext
Source§fn eq(&self, other: &ClientContext) -> bool
fn eq(&self, other: &ClientContext) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClientContext
impl Serialize for ClientContext
impl StructuralPartialEq for ClientContext
Auto Trait Implementations§
impl Freeze for ClientContext
impl RefUnwindSafe for ClientContext
impl Send for ClientContext
impl Sync for ClientContext
impl Unpin for ClientContext
impl UnsafeUnpin for ClientContext
impl UnwindSafe for ClientContext
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