Struct google_servicecontrol2::api::AttributeContext [−][src]
This message defines the standard attribute vocabulary for Google APIs. An attribute is a piece of metadata that describes an activity on a network service. For example, the size of an HTTP request, or the status code of an HTTP response. Each attribute has a type and a name, which is logically defined as a proto message field in AttributeContext. The field type becomes the attribute type, and the field path becomes the attribute name. For example, the attribute source.ip maps to field AttributeContext.source.ip. This message definition is guaranteed not to have any wire breaking change. So you can use it directly for passing attributes across different systems. NOTE: Different system may generate different subset of attributes. Please verify the system specification before relying on an attribute generated a system.
This type is not used in any activity, and only used as part of another schema.
Fields
api: Option<Api>Represents an API operation that is involved to a network activity.
destination: Option<Peer>The destination of a network activity, such as accepting a TCP connection. In a multi hop network activity, the destination represents the receiver of the last hop.
extensions: Option<Vec<HashMap<String, String>>>Supports extensions for advanced use cases, such as logs and metrics.
origin: Option<Peer>The origin of a network activity. In a multi hop network activity, the origin represents the sender of the first hop. For the first hop, the source and the origin must have the same content.
request: Option<Request>Represents a network request, such as an HTTP request.
resource: Option<Resource>Represents a target resource that is involved with a network activity. If multiple resources are involved with an activity, this must be the primary one.
response: Option<Response>Represents a network response, such as an HTTP response.
source: Option<Peer>The source of a network activity, such as starting a TCP connection. In a multi hop network activity, the source represents the sender of the last hop.
Trait Implementations
impl Clone for AttributeContext[src]
fn clone(&self) -> AttributeContext[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for AttributeContext[src]
impl Default for AttributeContext[src]
fn default() -> AttributeContext[src]
impl<'de> Deserialize<'de> for AttributeContext[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Part for AttributeContext[src]
impl Serialize for AttributeContext[src]
Auto Trait Implementations
impl RefUnwindSafe for AttributeContext[src]
impl Send for AttributeContext[src]
impl Sync for AttributeContext[src]
impl Unpin for AttributeContext[src]
impl UnwindSafe for AttributeContext[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,