pub struct FeedItemTarget {
pub resource_name: String,
pub feed_item: String,
pub feed_item_target_type: i32,
pub feed_item_target_id: 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: 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: 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.
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<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
.Source§impl PartialEq for FeedItemTarget
impl PartialEq for FeedItemTarget
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
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