Struct google_api_proto::google::cloud::datacatalog::v1beta1::Taxonomy
source · pub struct Taxonomy {
pub name: String,
pub display_name: String,
pub description: String,
pub policy_tag_count: i32,
pub taxonomy_timestamps: Option<SystemTimestamps>,
pub activated_policy_types: Vec<i32>,
pub service: Option<Service>,
}
Expand description
A taxonomy is a collection of policy tags that classify data along a common axis. For instance a data sensitivity taxonomy could contain policy tags denoting PII such as age, zipcode, and SSN. A data origin taxonomy could contain policy tags to distinguish user data, employee data, partner data, public data.
Fields§
§name: String
Identifier. Resource name of this taxonomy, whose format is: “projects/{project_number}/locations/{location_id}/taxonomies/{id}”.
display_name: String
Required. User defined name of this taxonomy. It must: contain only unicode letters, numbers, underscores, dashes and spaces; not start or end with spaces; and be at most 200 bytes long when encoded in UTF-8.
The taxonomy display name must be unique within an organization.
description: String
Optional. Description of this taxonomy. It must: contain only unicode characters, tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes long when encoded in UTF-8. If not set, defaults to an empty description.
policy_tag_count: i32
Output only. Number of policy tags contained in this taxonomy.
taxonomy_timestamps: Option<SystemTimestamps>
Output only. Timestamps about this taxonomy. Only create_time and update_time are used.
activated_policy_types: Vec<i32>
Optional. A list of policy types that are activated for this taxonomy. If not set, defaults to an empty list.
service: Option<Service>
Output only. Identity of the service which owns the Taxonomy. This field is only populated when the taxonomy is created by a Google Cloud service. Currently only ‘DATAPLEX’ is supported.
Implementations§
source§impl Taxonomy
impl Taxonomy
sourcepub fn activated_policy_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PolicyType>>
pub fn activated_policy_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PolicyType>>
Returns an iterator which yields the valid enum values contained in activated_policy_types
.
sourcepub fn push_activated_policy_types(&mut self, value: PolicyType)
pub fn push_activated_policy_types(&mut self, value: PolicyType)
Appends the provided enum value to activated_policy_types
.
Trait Implementations§
source§impl Message for Taxonomy
impl Message for Taxonomy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Taxonomy
impl PartialEq for Taxonomy
impl StructuralPartialEq for Taxonomy
Auto Trait Implementations§
impl Freeze for Taxonomy
impl RefUnwindSafe for Taxonomy
impl Send for Taxonomy
impl Sync for Taxonomy
impl Unpin for Taxonomy
impl UnwindSafe for Taxonomy
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request