pub struct Tenant {
pub name: String,
pub external_id: String,
pub usage_type: i32,
pub keyword_searchable_profile_custom_attributes: Vec<String>,
}
Expand description
A Tenant resource represents a tenant in the service. A tenant is a group or entity that shares common access with specific privileges for resources like profiles. Customer may create multiple tenants to provide data isolation for different groups.
Fields§
§name: String
Required during tenant update.
The resource name for a tenant. This is generated by the service when a tenant is created.
The format is “projects/{project_id}/tenants/{tenant_id}”, for example, “projects/foo/tenants/bar”.
external_id: String
Required. Client side tenant identifier, used to uniquely identify the tenant.
The maximum number of allowed characters is 255.
usage_type: i32
Indicates whether data owned by this tenant may be used to provide product improvements across other tenants.
Defaults behavior is [DataUsageType.ISOLATED][google.cloud.talent.v4beta1.Tenant.DataUsageType.ISOLATED] if it’s unset.
keyword_searchable_profile_custom_attributes: Vec<String>
A list of keys of filterable
[Profile.custom_attributes][google.cloud.talent.v4beta1.Profile.custom_attributes],
whose corresponding string_values
are used in keyword searches. Profiles
with string_values
under these specified field keys are returned if any
of the values match the search keyword. Custom field values with
parenthesis, brackets and special symbols are not searchable as-is,
and must be surrounded by quotes.
Implementations§
source§impl Tenant
impl Tenant
sourcepub fn usage_type(&self) -> DataUsageType
pub fn usage_type(&self) -> DataUsageType
Returns the enum value of usage_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_usage_type(&mut self, value: DataUsageType)
pub fn set_usage_type(&mut self, value: DataUsageType)
Sets usage_type
to the provided enum value.
Trait Implementations§
source§impl Message for Tenant
impl Message for Tenant
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 Tenant
impl PartialEq for Tenant
impl StructuralPartialEq for Tenant
Auto Trait Implementations§
impl Freeze for Tenant
impl RefUnwindSafe for Tenant
impl Send for Tenant
impl Sync for Tenant
impl Unpin for Tenant
impl UnwindSafe for Tenant
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