pub struct QueryOptions {Show 13 fields
pub wait_time: TimeDelta,
pub reverse: bool,
pub namespace: String,
pub wait_index: u64,
pub per_page: i32,
pub params: HashMap<String, String>,
pub headers: HashMap<String, String>,
pub region: String,
pub filter: String,
pub auth_token: String,
pub next_token: String,
pub allow_stale: bool,
pub prefix: 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§
§wait_time: TimeDelta
WaitTime is used to bound the duration of a wait. Defaults to that of the Config, but can be overridden.
reverse: bool
Reverse is used to reverse the default order of list results.
Currently only supported by specific endpoints.
namespace: String
Namespace is the target namespace for the query.
wait_index: u64
WaitIndex is used to enable a blocking query. Waits until the timeout or the next index is reached
per_page: i32
PerPage is the number of entries to be returned in queries that support paginated lists.
params: HashMap<String, String>
Set HTTP parameters on the query.
headers: HashMap<String, String>
Set HTTP headers on the query.
region: String
Providing a datacenter overwrites the region provided by the Config
filter: String
Filter specifies the go-bexpr filter expression to be used for filtering the data prior to returning a response
auth_token: String
AuthToken is the secret ID of an ACL token
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.
allow_stale: bool
AllowStale allows any Nomad server (non-leader) to service a read. This allows for lower latency and higher throughput
prefix: String
If set, used as prefix for resource list searches
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