Struct google_mybusiness4::api::Attribute
source · pub struct Attribute {
pub attribute_id: Option<String>,
pub repeated_enum_value: Option<RepeatedEnumAttributeValue>,
pub url_values: Option<Vec<UrlAttributeValue>>,
pub value_type: Option<String>,
pub values: Option<Vec<Value>>,
}
Expand description
A location attribute. Attributes provide additional information about a location. The attributes that can be set on a location may vary based on the properties of that location (for example, category). Available attributes are determined by Google and may be added and removed without API changes.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- list attributes (none)
Fields§
§attribute_id: Option<String>
The ID of the attribute. Attribute IDs are provided by Google.
repeated_enum_value: Option<RepeatedEnumAttributeValue>
When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the other values fields must be empty.
url_values: Option<Vec<UrlAttributeValue>>
When the attribute value type is URL, this field contains the value(s) for this attribute, and the other values fields must be empty.
value_type: Option<String>
Output only. The type of value that this attribute contains. This should be used to determine how to interpret the value.
values: Option<Vec<Value>>
The values for this attribute. The type of the values supplied must match that expected for that attribute; see AttributeValueType. This is a repeated field where multiple attribute values may be provided. Attribute types only support one value.