Struct google_cloudtrace2::api::Attributes [−][src]
pub struct Attributes {
pub attribute_map: Option<HashMap<String, AttributeValue>>,
pub dropped_attributes_count: Option<i32>,
}Expand description
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
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 }
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.
Trait Implementations
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more