Struct google_api_proto::google::ads::googleads::v16::resources::FeedItemTarget
source · pub struct FeedItemTarget {
pub resource_name: String,
pub feed_item: Option<String>,
pub feed_item_target_type: i32,
pub feed_item_target_id: Option<i64>,
pub status: i32,
pub target: Option<Target>,
}
Expand description
A feed item target.
Fields§
§resource_name: String
Immutable. The resource name of the feed item target.
Feed item target resource names have the form:
customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}
feed_item: Option<String>
Immutable. The feed item to which this feed item target belongs.
feed_item_target_type: i32
Output only. The target type of this feed item target. This field is read-only.
feed_item_target_id: Option<i64>
Output only. The ID of the targeted resource. This field is read-only.
status: i32
Output only. Status of the feed item target. This field is read-only.
target: Option<Target>
The targeted resource.
Implementations§
source§impl FeedItemTarget
impl FeedItemTarget
sourcepub fn feed_item_target_type(&self) -> FeedItemTargetType
pub fn feed_item_target_type(&self) -> FeedItemTargetType
Returns the enum value of feed_item_target_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_feed_item_target_type(&mut self, value: FeedItemTargetType)
pub fn set_feed_item_target_type(&mut self, value: FeedItemTargetType)
Sets feed_item_target_type
to the provided enum value.
sourcepub fn status(&self) -> FeedItemTargetStatus
pub fn status(&self) -> FeedItemTargetStatus
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: FeedItemTargetStatus)
pub fn set_status(&mut self, value: FeedItemTargetStatus)
Sets status
to the provided enum value.
sourcepub fn feed_item(&self) -> &str
pub fn feed_item(&self) -> &str
Returns the value of feed_item
, or the default value if feed_item
is unset.
sourcepub fn feed_item_target_id(&self) -> i64
pub fn feed_item_target_id(&self) -> i64
Returns the value of feed_item_target_id
, or the default value if feed_item_target_id
is unset.
Trait Implementations§
source§impl Clone for FeedItemTarget
impl Clone for FeedItemTarget
source§fn clone(&self) -> FeedItemTarget
fn clone(&self) -> FeedItemTarget
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeedItemTarget
impl Debug for FeedItemTarget
source§impl Default for FeedItemTarget
impl Default for FeedItemTarget
source§impl Message for FeedItemTarget
impl Message for FeedItemTarget
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 FeedItemTarget
impl PartialEq for FeedItemTarget
source§fn eq(&self, other: &FeedItemTarget) -> bool
fn eq(&self, other: &FeedItemTarget) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FeedItemTarget
Auto Trait Implementations§
impl Freeze for FeedItemTarget
impl RefUnwindSafe for FeedItemTarget
impl Send for FeedItemTarget
impl Sync for FeedItemTarget
impl Unpin for FeedItemTarget
impl UnwindSafe for FeedItemTarget
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