pub struct QueryOptions {Show 13 fields
pub filter: String,
pub namespace: String,
pub allow_stale: bool,
pub wait_index: u64,
pub auth_token: String,
pub region: String,
pub prefix: String,
pub params: HashMap<String, String>,
pub headers: HashMap<String, String>,
pub per_page: i32,
pub reverse: bool,
pub wait_time: TimeDelta,
pub next_token: String,
}
Expand description
QueryOptions are used to parametrize a query
This struct was generated based on the Go types of the official Nomad API.
Fields§
§filter: String
Filter specifies the go-bexpr filter expression to be used for filtering the data prior to returning a response
namespace: String
Namespace is the target namespace for the query.
allow_stale: bool
AllowStale allows any Nomad server (non-leader) to service a read. This allows for lower latency and higher throughput
wait_index: u64
WaitIndex is used to enable a blocking query. Waits until the timeout or the next index is reached
auth_token: String
AuthToken is the secret ID of an ACL token
region: String
Providing a datacenter overwrites the region provided by the Config
prefix: String
If set, used as prefix for resource list searches
params: HashMap<String, String>
Set HTTP parameters on the query.
headers: HashMap<String, String>
Set HTTP headers on the query.
per_page: i32
PerPage is the number of entries to be returned in queries that support paginated lists.
reverse: bool
Reverse is used to reverse the default order of list results.
Currently only supported by specific endpoints.
wait_time: TimeDelta
WaitTime is used to bound the duration of a wait. Defaults to that of the Config, but can be overridden.
next_token: String
NextToken is the token used to indicate where to start paging for queries that support paginated lists. This token should be the ID of the next object after the last one seen in the previous response.
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more