pub struct ConsistencyRequestParameters {
pub consistency: Option<ConsistencyEnum>,
}Expand description
ConsistencyRequestParameters : Control API consistency guarantees
Fields§
§consistency: Option<ConsistencyEnum>Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'. Setting the default consistency level to eventual may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: GET /admin/identities This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.
Implementations§
Source§impl ConsistencyRequestParameters
impl ConsistencyRequestParameters
Sourcepub fn new() -> ConsistencyRequestParameters
pub fn new() -> ConsistencyRequestParameters
Control API consistency guarantees
Trait Implementations§
Source§impl Clone for ConsistencyRequestParameters
impl Clone for ConsistencyRequestParameters
Source§fn clone(&self) -> ConsistencyRequestParameters
fn clone(&self) -> ConsistencyRequestParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConsistencyRequestParameters
impl Debug for ConsistencyRequestParameters
Source§impl Default for ConsistencyRequestParameters
impl Default for ConsistencyRequestParameters
Source§fn default() -> ConsistencyRequestParameters
fn default() -> ConsistencyRequestParameters
Source§impl<'de> Deserialize<'de> for ConsistencyRequestParameters
impl<'de> Deserialize<'de> for ConsistencyRequestParameters
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 PartialEq for ConsistencyRequestParameters
impl PartialEq for ConsistencyRequestParameters
Source§fn eq(&self, other: &ConsistencyRequestParameters) -> bool
fn eq(&self, other: &ConsistencyRequestParameters) -> bool
self and other values to be equal, and is used by ==.