pub struct SharedSet {
pub resource_name: String,
pub id: i64,
pub type: i32,
pub name: String,
pub status: i32,
pub member_count: i64,
pub reference_count: 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: 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: 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: i64
Output only. The number of shared criteria within this shared set. Read only.
reference_count: 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.
Trait Implementations§
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
.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
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