Struct google_api_proto::google::ads::googleads::v17::resources::RecommendationSubscription
source · pub struct RecommendationSubscription {
pub resource_name: String,
pub type: i32,
pub create_date_time: Option<String>,
pub modify_date_time: Option<String>,
pub status: Option<i32>,
}
Expand description
Recommendation Subscription resource
Fields§
§resource_name: String
Immutable. The resource name of the recommendation subscription.
customers/{customer_id}/recommendationSubscriptions/{recommendation_type}
type: i32
Required. Immutable. The type of recommendation subscribed to.
create_date_time: Option<String>
Output only. Time in seconds when the subscription was first created. The datetime is in the customer’s time zone and in “yyyy-MM-dd HH:mm:ss” format.
modify_date_time: Option<String>
Output only. Contains the time in microseconds, when the Recommendation Subscription was last updated. The datetime is in the customer’s time zone and in “yyyy-MM-dd HH:mm:ss.ssssss” format.
status: Option<i32>
Required. Status of the subscription, either enabled or paused.
Implementations§
source§impl RecommendationSubscription
impl RecommendationSubscription
sourcepub fn type(&self) -> RecommendationType
pub fn type(&self) -> RecommendationType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: RecommendationType)
pub fn set_type(&mut self, value: RecommendationType)
Sets type
to the provided enum value.
sourcepub fn create_date_time(&self) -> &str
pub fn create_date_time(&self) -> &str
Returns the value of create_date_time
, or the default value if create_date_time
is unset.
sourcepub fn modify_date_time(&self) -> &str
pub fn modify_date_time(&self) -> &str
Returns the value of modify_date_time
, or the default value if modify_date_time
is unset.
sourcepub fn status(&self) -> RecommendationSubscriptionStatus
pub fn status(&self) -> RecommendationSubscriptionStatus
Returns the enum value of status
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_status(&mut self, value: RecommendationSubscriptionStatus)
pub fn set_status(&mut self, value: RecommendationSubscriptionStatus)
Sets status
to the provided enum value.
Trait Implementations§
source§impl Clone for RecommendationSubscription
impl Clone for RecommendationSubscription
source§fn clone(&self) -> RecommendationSubscription
fn clone(&self) -> RecommendationSubscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationSubscription
impl Debug for RecommendationSubscription
source§impl Default for RecommendationSubscription
impl Default for RecommendationSubscription
source§impl Message for RecommendationSubscription
impl Message for RecommendationSubscription
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 RecommendationSubscription
impl PartialEq for RecommendationSubscription
source§fn eq(&self, other: &RecommendationSubscription) -> bool
fn eq(&self, other: &RecommendationSubscription) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationSubscription
Auto Trait Implementations§
impl Freeze for RecommendationSubscription
impl RefUnwindSafe for RecommendationSubscription
impl Send for RecommendationSubscription
impl Sync for RecommendationSubscription
impl Unpin for RecommendationSubscription
impl UnwindSafe for RecommendationSubscription
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