Struct google_api_proto::google::shopping::merchant::notifications::v1beta::NotificationSubscription
source · pub struct NotificationSubscription {
pub name: String,
pub registered_event: i32,
pub call_back_uri: String,
pub interested_in: Option<InterestedIn>,
}
Expand description
Represents a notification subscription owned by a Merchant account.
Fields§
§name: String
Output only. The name
of the notification configuration. Generated by the
Content API upon creation of a new NotificationSubscription
. The
account
represents the merchant ID of the merchant that owns the
configuration. Format:
accounts/{account}/notificationsubscriptions/{notification_subscription}
registered_event: i32
The event that the merchant wants to be notified about.
call_back_uri: String
URL to be used to push the notification to the merchant.
interested_in: Option<InterestedIn>
Implementations§
source§impl NotificationSubscription
impl NotificationSubscription
sourcepub fn registered_event(&self) -> NotificationEventType
pub fn registered_event(&self) -> NotificationEventType
Returns the enum value of registered_event
, or the default if the field is set to an invalid enum value.
sourcepub fn set_registered_event(&mut self, value: NotificationEventType)
pub fn set_registered_event(&mut self, value: NotificationEventType)
Sets registered_event
to the provided enum value.
Trait Implementations§
source§impl Clone for NotificationSubscription
impl Clone for NotificationSubscription
source§fn clone(&self) -> NotificationSubscription
fn clone(&self) -> NotificationSubscription
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NotificationSubscription
impl Debug for NotificationSubscription
source§impl Default for NotificationSubscription
impl Default for NotificationSubscription
source§impl Message for NotificationSubscription
impl Message for NotificationSubscription
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for NotificationSubscription
impl PartialEq for NotificationSubscription
source§fn eq(&self, other: &NotificationSubscription) -> bool
fn eq(&self, other: &NotificationSubscription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationSubscription
Auto Trait Implementations§
impl Freeze for NotificationSubscription
impl RefUnwindSafe for NotificationSubscription
impl Send for NotificationSubscription
impl Sync for NotificationSubscription
impl Unpin for NotificationSubscription
impl UnwindSafe for NotificationSubscription
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
Mutably borrows from an owned value. Read more
§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>
Wrap the input message
T
in a tonic::Request