pub struct CustomInterest {
pub resource_name: String,
pub id: i64,
pub status: i32,
pub name: String,
pub type: i32,
pub description: String,
pub members: Vec<CustomInterestMember>,
}
Expand description
A custom interest. This is a list of users by interest.
Fields§
§resource_name: String
Immutable. The resource name of the custom interest. Custom interest resource names have the form:
customers/{customer_id}/customInterests/{custom_interest_id}
id: i64
Output only. Id of the custom interest.
status: i32
Status of this custom interest. Indicates whether the custom interest is enabled or removed.
name: String
Name of the custom interest. It should be unique across the same custom affinity audience. This field is required for create operations.
type: i32
Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. By default the type is set to CUSTOM_AFFINITY.
description: String
Description of this custom interest audience.
members: Vec<CustomInterestMember>
List of custom interest members that this custom interest is composed of. Members can be added during CustomInterest creation. If members are presented in UPDATE operation, existing members will be overridden.
Implementations§
Source§impl CustomInterest
impl CustomInterest
Sourcepub fn status(&self) -> CustomInterestStatus
pub fn status(&self) -> CustomInterestStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: CustomInterestStatus)
pub fn set_status(&mut self, value: CustomInterestStatus)
Sets status
to the provided enum value.
Sourcepub fn type(&self) -> CustomInterestType
pub fn type(&self) -> CustomInterestType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: CustomInterestType)
pub fn set_type(&mut self, value: CustomInterestType)
Sets type
to the provided enum value.
Trait Implementations§
Source§impl Clone for CustomInterest
impl Clone for CustomInterest
Source§fn clone(&self) -> CustomInterest
fn clone(&self) -> CustomInterest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomInterest
impl Debug for CustomInterest
Source§impl Default for CustomInterest
impl Default for CustomInterest
Source§impl Message for CustomInterest
impl Message for CustomInterest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CustomInterest
impl PartialEq for CustomInterest
impl StructuralPartialEq for CustomInterest
Auto Trait Implementations§
impl Freeze for CustomInterest
impl RefUnwindSafe for CustomInterest
impl Send for CustomInterest
impl Sync for CustomInterest
impl Unpin for CustomInterest
impl UnwindSafe for CustomInterest
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§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> 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