pub struct Feed {
pub resource_name: String,
pub id: Option<i64>,
pub name: Option<String>,
pub attributes: Vec<FeedAttribute>,
pub attribute_operations: Vec<FeedAttributeOperation>,
pub origin: i32,
pub status: i32,
pub system_feed_generation_data: Option<SystemFeedGenerationData>,
}
Expand description
A feed.
Fields§
§resource_name: String
Immutable. The resource name of the feed. Feed resource names have the form:
customers/{customer_id}/feeds/{feed_id}
id: Option<i64>
Output only. The ID of the feed. This field is read-only.
name: Option<String>
Immutable. Name of the feed. Required.
attributes: Vec<FeedAttribute>
The Feed’s attributes. Required on CREATE, unless system_feed_generation_data is provided, in which case Google Ads will update the feed with the correct attributes. Disallowed on UPDATE. Use attribute_operations to add new attributes.
attribute_operations: Vec<FeedAttributeOperation>
The list of operations changing the feed attributes. Attributes can only be added, not removed.
origin: i32
Immutable. Specifies who manages the FeedAttributes for the Feed.
status: i32
Output only. Status of the feed. This field is read-only.
system_feed_generation_data: Option<SystemFeedGenerationData>
The system data for the Feed. This data specifies information for generating the feed items of the system generated feed.
Implementations§
source§impl Feed
impl Feed
sourcepub fn origin(&self) -> FeedOrigin
pub fn origin(&self) -> FeedOrigin
Returns the enum value of origin
, or the default if the field is set to an invalid enum value.
sourcepub fn set_origin(&mut self, value: FeedOrigin)
pub fn set_origin(&mut self, value: FeedOrigin)
Sets origin
to the provided enum value.
sourcepub fn status(&self) -> FeedStatus
pub fn status(&self) -> FeedStatus
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: FeedStatus)
pub fn set_status(&mut self, value: FeedStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Message for Feed
impl Message for Feed
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 Feed
impl PartialEq for Feed
impl StructuralPartialEq for Feed
Auto Trait Implementations§
impl Freeze for Feed
impl RefUnwindSafe for Feed
impl Send for Feed
impl Sync for Feed
impl Unpin for Feed
impl UnwindSafe for Feed
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