pub struct QueryOptions {Show 13 fields
pub region: Option<String>,
pub namespace: Option<String>,
pub allow_stale: Option<bool>,
pub wait_index: Option<u64>,
pub wait_time: Option<u64>,
pub prefix: Option<String>,
pub params: Option<HashMap<String, String>>,
pub headers: Option<HashMap<String, String>>,
pub auth_token: Option<String>,
pub filter: Option<String>,
pub per_page: Option<i32>,
pub next_token: Option<String>,
pub reverse: Option<bool>,
}Fields§
§region: Option<String>§namespace: Option<String>§allow_stale: Option<bool>§wait_index: Option<u64>§wait_time: Option<u64>§prefix: Option<String>§params: Option<HashMap<String, String>>§headers: Option<HashMap<String, String>>§auth_token: Option<String>§filter: Option<String>§per_page: Option<i32>§next_token: Option<String>§reverse: Option<bool>Implementations§
Source§impl QueryOptions
impl QueryOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new instance of QueryOptions with default values, so callers
don’t have to specify all fields.
pub fn with_region(self, region: String) -> Self
pub fn with_namespace(self, namespace: String) -> Self
pub fn with_allow_stale(self, allow_stale: bool) -> Self
pub fn with_wait_index(self, wait_index: u64) -> Self
pub fn with_wait_time(self, wait_time: u64) -> Self
pub fn with_prefix(self, prefix: String) -> Self
pub fn with_params(self, params: HashMap<String, String>) -> Self
pub fn with_headers(self, headers: HashMap<String, String>) -> Self
pub fn with_auth_token(self, auth_token: String) -> Self
pub fn with_filter(self, filter: String) -> Self
pub fn with_per_page(self, per_page: i32) -> Self
pub fn with_next_token(self, next_token: String) -> Self
pub fn with_reverse(self, reverse: bool) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin 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