[][src]Struct google_cloudtrace2::Attributes

pub struct Attributes {
    pub dropped_attributes_count: Option<i32>,
    pub attribute_map: Option<HashMap<String, AttributeValue>>,
}

A set of attributes, each in the format [KEY]:[VALUE].

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

Fields

dropped_attributes_count: Option<i32>

The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all attributes are valid.

attribute_map: Option<HashMap<String, AttributeValue>>

The set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the Boolean values true and false. For example:

"/instance_id": { "string_value": { "value": "my-instance" } }
"/http/request_bytes": { "int_value": 300 }
"abc.com/myattribute": { "bool_value": false }````

Trait Implementations

impl Clone for Attributes[src]

impl Debug for Attributes[src]

impl Default for Attributes[src]

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

impl Part for Attributes[src]

impl Serialize for Attributes[src]

Auto Trait Implementations

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, 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.

impl<T> Typeable for T where
    T: Any