pub struct GetNodesRequest<'a> {
pub near: Option<&'a str>,
pub filter: Option<&'a str>,
}Expand description
Request for the nodes providing a specified service registered in Consul. See https://developer.hashicorp.com/consul/api-docs/catalog#list-nodes for more information.
Fields§
§near: Option<&'a str>Specifies a node name to sort the node list in ascending order based on the estimated round trip time from that node.
Passing ?near=_agent will use the agent’s node for the sort. This is specified as part of the URL as a query parameter.
Note that using near will ignore use_streaming_backend and always use blocking queries, because the data required to
sort the results is not available to the streaming backend.
filter: Option<&'a str>(string: “”) Specifies the expression used to filter the queries results prior to returning the data.
Implementations§
Source§impl<'a> GetNodesRequest<'a>
impl<'a> GetNodesRequest<'a>
Sourcepub fn builder() -> GetNodesRequestBuilder<'a>
pub fn builder() -> GetNodesRequestBuilder<'a>
Create an instance of GetNodesRequest using the builder syntax
Trait Implementations§
Source§impl<'a> Clone for GetNodesRequest<'a>
impl<'a> Clone for GetNodesRequest<'a>
Source§fn clone(&self) -> GetNodesRequest<'a>
fn clone(&self) -> GetNodesRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for GetNodesRequest<'a>
impl<'a> Debug for GetNodesRequest<'a>
Source§impl<'a> Default for GetNodesRequest<'a>
impl<'a> Default for GetNodesRequest<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for GetNodesRequest<'a>
impl<'de: 'a, 'a> Deserialize<'de> for GetNodesRequest<'a>
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
Source§impl<'a> PartialEq for GetNodesRequest<'a>
impl<'a> PartialEq for GetNodesRequest<'a>
Source§impl<'a> Serialize for GetNodesRequest<'a>
impl<'a> Serialize for GetNodesRequest<'a>
impl<'a> StructuralPartialEq for GetNodesRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for GetNodesRequest<'a>
impl<'a> RefUnwindSafe for GetNodesRequest<'a>
impl<'a> Send for GetNodesRequest<'a>
impl<'a> Sync for GetNodesRequest<'a>
impl<'a> Unpin for GetNodesRequest<'a>
impl<'a> UnsafeUnpin for GetNodesRequest<'a>
impl<'a> UnwindSafe for GetNodesRequest<'a>
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