pub struct SharedSet {
pub resource_name: String,
pub id: Option<i64>,
pub type: i32,
pub name: Option<String>,
pub status: i32,
pub member_count: Option<i64>,
pub reference_count: Option<i64>,
}
Expand description
SharedSets are used for sharing criterion exclusions across multiple campaigns.
Fields§
§resource_name: String
Immutable. The resource name of the shared set. Shared set resource names have the form:
customers/{customer_id}/sharedSets/{shared_set_id}
id: Option<i64>
Output only. The ID of this shared set. Read only.
type: i32
Immutable. The type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
name: Option<String>
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
status: i32
Output only. The status of this shared set. Read only.
member_count: Option<i64>
Output only. The number of shared criteria within this shared set. Read only.
reference_count: Option<i64>
Output only. The number of campaigns associated with this shared set. Read only.
Implementations§
sourcepub fn type(&self) -> SharedSetType
pub fn type(&self) -> SharedSetType
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: SharedSetType)
pub fn set_type(&mut self, value: SharedSetType)
Sets type
to the provided enum value.
sourcepub fn status(&self) -> SharedSetStatus
pub fn status(&self) -> SharedSetStatus
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: SharedSetStatus)
pub fn set_status(&mut self, value: SharedSetStatus)
Sets status
to the provided enum value.
sourcepub fn member_count(&self) -> i64
pub fn member_count(&self) -> i64
Returns the value of member_count
, or the default value if member_count
is unset.
sourcepub fn reference_count(&self) -> i64
pub fn reference_count(&self) -> i64
Returns the value of reference_count
, or the default value if reference_count
is unset.
Trait Implementations§
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
.Auto Trait Implementations§
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