Skip to main content

QueryOptions

Struct QueryOptions 

Source
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

Source

pub fn new() -> Self

Creates a new instance of QueryOptions with default values, so callers don’t have to specify all fields.

Source

pub fn with_region(self, region: String) -> Self

Source

pub fn with_namespace(self, namespace: String) -> Self

Source

pub fn with_allow_stale(self, allow_stale: bool) -> Self

Source

pub fn with_wait_index(self, wait_index: u64) -> Self

Source

pub fn with_wait_time(self, wait_time: u64) -> Self

Source

pub fn with_prefix(self, prefix: String) -> Self

Source

pub fn with_params(self, params: HashMap<String, String>) -> Self

Source

pub fn with_headers(self, headers: HashMap<String, String>) -> Self

Source

pub fn with_auth_token(self, auth_token: String) -> Self

Source

pub fn with_filter(self, filter: String) -> Self

Source

pub fn with_per_page(self, per_page: i32) -> Self

Source

pub fn with_next_token(self, next_token: String) -> Self

Source

pub fn with_reverse(self, reverse: bool) -> Self

Trait Implementations§

Source§

impl Default for QueryOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more