pub struct Feed {
pub resource_name: String,
pub id: i64,
pub name: 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: i64
Output only. The ID of the feed. This field is read-only.
name: 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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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