pub struct CampaignExtensionSetting {
pub resource_name: String,
pub extension_type: i32,
pub campaign: String,
pub extension_feed_items: Vec<String>,
pub device: i32,
}
Expand description
A campaign extension setting.
Fields§
§resource_name: String
Immutable. The resource name of the campaign extension setting. CampaignExtensionSetting resource names have the form:
customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}
extension_type: i32
Immutable. The extension type of the customer extension setting.
campaign: String
Immutable. The resource name of the campaign. The linked extension feed items will serve under this campaign. Campaign resource names have the form:
customers/{customer_id}/campaigns/{campaign_id}
extension_feed_items: Vec<String>
The resource names of the extension feed items to serve under the campaign. ExtensionFeedItem resource names have the form:
customers/{customer_id}/extensionFeedItems/{feed_item_id}
device: i32
The device for which the extensions will serve. Optional.
Implementations§
Source§impl CampaignExtensionSetting
impl CampaignExtensionSetting
Sourcepub fn extension_type(&self) -> ExtensionType
pub fn extension_type(&self) -> ExtensionType
Returns the enum value of extension_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_extension_type(&mut self, value: ExtensionType)
pub fn set_extension_type(&mut self, value: ExtensionType)
Sets extension_type
to the provided enum value.
Sourcepub fn device(&self) -> ExtensionSettingDevice
pub fn device(&self) -> ExtensionSettingDevice
Returns the enum value of device
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_device(&mut self, value: ExtensionSettingDevice)
pub fn set_device(&mut self, value: ExtensionSettingDevice)
Sets device
to the provided enum value.
Trait Implementations§
Source§impl Clone for CampaignExtensionSetting
impl Clone for CampaignExtensionSetting
Source§fn clone(&self) -> CampaignExtensionSetting
fn clone(&self) -> CampaignExtensionSetting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CampaignExtensionSetting
impl Debug for CampaignExtensionSetting
Source§impl Default for CampaignExtensionSetting
impl Default for CampaignExtensionSetting
Source§impl Message for CampaignExtensionSetting
impl Message for CampaignExtensionSetting
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 CampaignExtensionSetting
impl PartialEq for CampaignExtensionSetting
impl StructuralPartialEq for CampaignExtensionSetting
Auto Trait Implementations§
impl Freeze for CampaignExtensionSetting
impl RefUnwindSafe for CampaignExtensionSetting
impl Send for CampaignExtensionSetting
impl Sync for CampaignExtensionSetting
impl Unpin for CampaignExtensionSetting
impl UnwindSafe for CampaignExtensionSetting
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