pub struct DirectedReadOptions {
pub exclude_replicas: Option<ExcludeReplicas>,
pub include_replicas: Option<IncludeReplicas>,
}Expand description
The DirectedReadOptions can be used to indicate which replicas or regions should be used for non-transactional reads or queries. DirectedReadOptions may only be specified for a read-only transaction, otherwise the API will return an INVALID_ARGUMENT error.
This type is not used in any activity, and only used as part of another schema.
Fields§
§exclude_replicas: Option<ExcludeReplicas>Exclude_replicas indicates that specified replicas should be excluded from serving requests. Spanner will not route requests to the replicas in this list.
include_replicas: Option<IncludeReplicas>Include_replicas indicates the order of replicas (as they appear in this list) to process the request. If auto_failover_disabled is set to true and all replicas are exhausted without finding a healthy replica, Spanner will wait for a replica in the list to become available, requests may fail due to DEADLINE_EXCEEDED errors.
Trait Implementations§
Source§impl Clone for DirectedReadOptions
impl Clone for DirectedReadOptions
Source§fn clone(&self) -> DirectedReadOptions
fn clone(&self) -> DirectedReadOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DirectedReadOptions
impl Debug for DirectedReadOptions
Source§impl Default for DirectedReadOptions
impl Default for DirectedReadOptions
Source§fn default() -> DirectedReadOptions
fn default() -> DirectedReadOptions
Source§impl<'de> Deserialize<'de> for DirectedReadOptions
impl<'de> Deserialize<'de> for DirectedReadOptions
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 Serialize for DirectedReadOptions
impl Serialize for DirectedReadOptions
impl Part for DirectedReadOptions
Auto Trait Implementations§
impl Freeze for DirectedReadOptions
impl RefUnwindSafe for DirectedReadOptions
impl Send for DirectedReadOptions
impl Sync for DirectedReadOptions
impl Unpin for DirectedReadOptions
impl UnwindSafe for DirectedReadOptions
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more