pub struct RecommendationSubscription {
pub resource_name: String,
pub type: i32,
pub create_date_time: String,
pub modify_date_time: String,
pub status: 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: 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: 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: 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 status(&self) -> RecommendationSubscriptionStatus
pub fn status(&self) -> RecommendationSubscriptionStatus
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: 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<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 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
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