Struct google_api_proto::google::ads::googleads::v17::resources::FeedMapping
source · pub struct FeedMapping {
pub resource_name: String,
pub feed: Option<String>,
pub attribute_field_mappings: Vec<AttributeFieldMapping>,
pub status: i32,
pub target: Option<Target>,
}
Expand description
A feed mapping.
Fields§
§resource_name: String
Immutable. The resource name of the feed mapping. Feed mapping resource names have the form:
customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}
feed: Option<String>
Immutable. The feed of this feed mapping.
attribute_field_mappings: Vec<AttributeFieldMapping>
Immutable. Feed attributes to field mappings. These mappings are a one-to-many relationship meaning that 1 feed attribute can be used to populate multiple placeholder fields, but 1 placeholder field can only draw data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder field can be mapped to multiple feed attributes. Required.
status: i32
Output only. Status of the feed mapping. This field is read-only.
target: Option<Target>
Feed mapping target. Can be either a placeholder or a criterion. For a given feed, the active FeedMappings must have unique targets. Required.
Implementations§
source§impl FeedMapping
impl FeedMapping
sourcepub fn status(&self) -> FeedMappingStatus
pub fn status(&self) -> FeedMappingStatus
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: FeedMappingStatus)
pub fn set_status(&mut self, value: FeedMappingStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for FeedMapping
impl Clone for FeedMapping
source§fn clone(&self) -> FeedMapping
fn clone(&self) -> FeedMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeedMapping
impl Debug for FeedMapping
source§impl Default for FeedMapping
impl Default for FeedMapping
source§impl Message for FeedMapping
impl Message for FeedMapping
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 FeedMapping
impl PartialEq for FeedMapping
source§fn eq(&self, other: &FeedMapping) -> bool
fn eq(&self, other: &FeedMapping) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FeedMapping
Auto Trait Implementations§
impl Freeze for FeedMapping
impl RefUnwindSafe for FeedMapping
impl Send for FeedMapping
impl Sync for FeedMapping
impl Unpin for FeedMapping
impl UnwindSafe for FeedMapping
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