pub struct QueryOptions {
pub region: Option<String>,
pub namespace: Option<String>,
pub allow_stale: Option<bool>,
pub wait_index: Option<i32>,
pub wait_time: Option<i64>,
pub prefix: Option<String>,
pub params: Option<HashMap<String, String>>,
pub auth_token: Option<String>,
}
Fields§
§region: Option<String>
§namespace: Option<String>
§allow_stale: Option<bool>
§wait_index: Option<i32>
§wait_time: Option<i64>
§prefix: Option<String>
§params: Option<HashMap<String, String>>
§auth_token: Option<String>
Implementations§
Source§impl QueryOptions
impl QueryOptions
pub fn new() -> QueryOptions
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QueryOptions
impl Debug for QueryOptions
Source§impl<'de> Deserialize<'de> for QueryOptions
impl<'de> Deserialize<'de> for QueryOptions
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
Source§impl PartialEq for QueryOptions
impl PartialEq for QueryOptions
Source§impl Serialize for QueryOptions
impl Serialize for QueryOptions
impl StructuralPartialEq for QueryOptions
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnwindSafe for QueryOptions
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