Struct google_api_proto::google::ads::googleads::v16::resources::CampaignExtensionSetting
source · pub struct CampaignExtensionSetting {
pub resource_name: String,
pub extension_type: i32,
pub campaign: Option<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: Option<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(&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 CampaignExtensionSetting
impl PartialEq for CampaignExtensionSetting
source§fn eq(&self, other: &CampaignExtensionSetting) -> bool
fn eq(&self, other: &CampaignExtensionSetting) -> bool
self
and other
values to be equal, and is used
by ==
.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
§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