Struct google_api_proto::google::ads::googleads::v17::resources::CampaignFeed
source · pub struct CampaignFeed {
pub resource_name: String,
pub feed: Option<String>,
pub campaign: Option<String>,
pub placeholder_types: Vec<i32>,
pub matching_function: Option<MatchingFunction>,
pub status: i32,
}
Expand description
A campaign feed.
Fields§
§resource_name: String
Immutable. The resource name of the campaign feed. Campaign feed resource names have the form:
`customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}
feed: Option<String>
Immutable. The feed to which the CampaignFeed belongs.
campaign: Option<String>
Immutable. The campaign to which the CampaignFeed belongs.
placeholder_types: Vec<i32>
Indicates which placeholder types the feed may populate under the connected campaign. Required.
matching_function: Option<MatchingFunction>
Matching function associated with the CampaignFeed. The matching function is used to filter the set of feed items selected. Required.
status: i32
Output only. Status of the campaign feed. This field is read-only.
Implementations§
source§impl CampaignFeed
impl CampaignFeed
sourcepub fn placeholder_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PlaceholderType>>
pub fn placeholder_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<PlaceholderType>>
Returns an iterator which yields the valid enum values contained in placeholder_types
.
sourcepub fn push_placeholder_types(&mut self, value: PlaceholderType)
pub fn push_placeholder_types(&mut self, value: PlaceholderType)
Appends the provided enum value to placeholder_types
.
sourcepub fn status(&self) -> FeedLinkStatus
pub fn status(&self) -> FeedLinkStatus
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: FeedLinkStatus)
pub fn set_status(&mut self, value: FeedLinkStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for CampaignFeed
impl Clone for CampaignFeed
source§fn clone(&self) -> CampaignFeed
fn clone(&self) -> CampaignFeed
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignFeed
impl Debug for CampaignFeed
source§impl Default for CampaignFeed
impl Default for CampaignFeed
source§impl Message for CampaignFeed
impl Message for CampaignFeed
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 CampaignFeed
impl PartialEq for CampaignFeed
source§fn eq(&self, other: &CampaignFeed) -> bool
fn eq(&self, other: &CampaignFeed) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CampaignFeed
Auto Trait Implementations§
impl Freeze for CampaignFeed
impl RefUnwindSafe for CampaignFeed
impl Send for CampaignFeed
impl Sync for CampaignFeed
impl Unpin for CampaignFeed
impl UnwindSafe for CampaignFeed
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