pub struct ServiceNode {
pub node: Node,
pub service: Service,
}Expand description
An instance of a node providing a Consul service.
Fields§
§node: NodeThe Node information for this service
service: ServiceThe Service information
Trait Implementations§
Source§impl Clone for ServiceNode
impl Clone for ServiceNode
Source§fn clone(&self) -> ServiceNode
fn clone(&self) -> ServiceNode
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 Debug for ServiceNode
impl Debug for ServiceNode
Source§impl Default for ServiceNode
impl Default for ServiceNode
Source§impl<'de> Deserialize<'de> for ServiceNode
impl<'de> Deserialize<'de> for ServiceNode
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 PartialEq for ServiceNode
impl PartialEq for ServiceNode
Source§impl Serialize for ServiceNode
impl Serialize for ServiceNode
impl StructuralPartialEq for ServiceNode
Auto Trait Implementations§
impl Freeze for ServiceNode
impl RefUnwindSafe for ServiceNode
impl Send for ServiceNode
impl Sync for ServiceNode
impl Unpin for ServiceNode
impl UnsafeUnpin for ServiceNode
impl UnwindSafe for ServiceNode
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