pub struct QueryMeta {
pub last_index: u64,
pub last_contact: TimeDelta,
pub known_leader: bool,
pub request_time: TimeDelta,
pub next_token: String,
}
Expand description
QueryMeta is used to return meta data about a query
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§last_index: u64
LastIndex. This can be used as a WaitIndex to perform a blocking query
last_contact: TimeDelta
Time of last contact from the leader for the server servicing the request
known_leader: bool
Is there a known leader
request_time: TimeDelta
How long did the request take
next_token: String
NextToken is the token used to indicate where to start paging for queries that support paginated lists. To resume paging from this point, pass this token in the next request’s QueryOptions
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryMeta
impl<'de> Deserialize<'de> for QueryMeta
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
impl StructuralPartialEq for QueryMeta
Auto Trait Implementations§
impl Freeze for QueryMeta
impl RefUnwindSafe for QueryMeta
impl Send for QueryMeta
impl Sync for QueryMeta
impl Unpin for QueryMeta
impl UnwindSafe for QueryMeta
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