Struct google_servicecontrol2::api::Peer[][src]

pub struct Peer {
    pub ip: Option<String>,
    pub labels: Option<HashMap<String, String>>,
    pub port: Option<String>,
    pub principal: Option<String>,
    pub region_code: Option<String>,
}

This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in principal and labels as appropriate.

This type is not used in any activity, and only used as part of another schema.

Fields

ip: Option<String>

The IP address of the peer.

labels: Option<HashMap<String, String>>

The labels associated with the peer.

port: Option<String>

The network port of the peer.

principal: Option<String>

The identity of this peer. Similar to Request.auth.principal, but relative to the peer instead of the request. For example, the idenity associated with a load balancer that forwared the request.

region_code: Option<String>

The CLDR country/region code associated with the above IP address. If the IP address is private, the region_code should reflect the physical location where this peer is running.

Trait Implementations

impl Clone for Peer[src]

impl Debug for Peer[src]

impl Default for Peer[src]

impl<'de> Deserialize<'de> for Peer[src]

impl Part for Peer[src]

impl Serialize for Peer[src]

Auto Trait Implementations

impl RefUnwindSafe for Peer

impl Send for Peer

impl Sync for Peer

impl Unpin for Peer

impl UnwindSafe for Peer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.