Struct google_servicecontrol1::api::Attributes
source · 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”: “my-instance” “/http/user_agent”: “” “/http/request_bytes”: 300 “abc.com/myattribute”: true
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§
source§impl Clone for Attributes
impl Clone for Attributes
source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · 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 Attributes
impl Debug for Attributes
source§impl Default for Attributes
impl Default for Attributes
source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Attributes
impl<'de> Deserialize<'de> for Attributes
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 Serialize for Attributes
impl Serialize for Attributes
impl Part for Attributes
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§
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