pub struct AttributeDefinition {
pub allowed_values: Option<Vec<String>>,
pub category: Option<String>,
pub consent_default_values: Option<Vec<String>>,
pub data_mapping_default_value: Option<String>,
pub description: Option<String>,
pub name: Option<String>,
}
Expand description
A client-defined consent attribute.
§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).
Fields§
§allowed_values: Option<Vec<String>>
Required. Possible values for the attribute. The number of allowed values must not exceed 500. An empty list is invalid. The list can only be expanded after creation.
category: Option<String>
Required. The category of the attribute. The value of this field cannot be changed after creation.
consent_default_values: Option<Vec<String>>
Optional. Default values of the attribute in Consents. If no default values are specified, it defaults to an empty value.
data_mapping_default_value: Option<String>
Optional. Default value of the attribute in User data mappings. If no default value is specified, it defaults to an empty value. This field is only applicable to attributes of the category RESOURCE
.
description: Option<String>
Optional. A description of the attribute.
name: Option<String>
Identifier. Resource name of the Attribute definition, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/attributeDefinitions/{attribute_definition_id}
. Cannot be changed after creation.
Trait Implementations§
source§impl Clone for AttributeDefinition
impl Clone for AttributeDefinition
source§fn clone(&self) -> AttributeDefinition
fn clone(&self) -> AttributeDefinition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AttributeDefinition
impl Debug for AttributeDefinition
source§impl Default for AttributeDefinition
impl Default for AttributeDefinition
source§fn default() -> AttributeDefinition
fn default() -> AttributeDefinition
source§impl<'de> Deserialize<'de> for AttributeDefinition
impl<'de> Deserialize<'de> for AttributeDefinition
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>,
source§impl Serialize for AttributeDefinition
impl Serialize for AttributeDefinition
impl RequestValue for AttributeDefinition
impl ResponseResult for AttributeDefinition
Auto Trait Implementations§
impl Freeze for AttributeDefinition
impl RefUnwindSafe for AttributeDefinition
impl Send for AttributeDefinition
impl Sync for AttributeDefinition
impl Unpin for AttributeDefinition
impl UnwindSafe for AttributeDefinition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more