Struct google_api_proto::google::shopping::merchant::notifications::v1beta::ProductStatusChangeMessage
source · pub struct ProductStatusChangeMessage {
pub account: Option<String>,
pub managing_account: Option<String>,
pub resource_type: Option<i32>,
pub attribute: Option<i32>,
pub changes: Vec<ProductChange>,
pub resource_id: Option<String>,
pub resource: Option<String>,
}
Expand description
The message that the merchant will receive to notify about product status change event
Fields§
§account: Option<String>
The target account that owns the entity that changed.
Format : accounts/{merchant_id}
managing_account: Option<String>
The account that manages the merchant’s account. can be the same as
merchant id if it is standalone account. Format :
accounts/{service_provider_id}
resource_type: Option<i32>
The resource that changed, in this case it will always be Product
.
attribute: Option<i32>
The attribute in the resource that changed, in this case it will be always
Status
.
changes: Vec<ProductChange>
A message to describe the change that happened to the product
resource_id: Option<String>
The product id.
resource: Option<String>
The product name.
Format: {product.name=accounts/{account}/products/{product}}
Implementations§
source§impl ProductStatusChangeMessage
impl ProductStatusChangeMessage
sourcepub fn account(&self) -> &str
pub fn account(&self) -> &str
Returns the value of account
, or the default value if account
is unset.
sourcepub fn managing_account(&self) -> &str
pub fn managing_account(&self) -> &str
Returns the value of managing_account
, or the default value if managing_account
is unset.
sourcepub fn resource_type(&self) -> Resource
pub fn resource_type(&self) -> Resource
Returns the enum value of resource_type
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_resource_type(&mut self, value: Resource)
pub fn set_resource_type(&mut self, value: Resource)
Sets resource_type
to the provided enum value.
sourcepub fn attribute(&self) -> Attribute
pub fn attribute(&self) -> Attribute
Returns the enum value of attribute
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_attribute(&mut self, value: Attribute)
pub fn set_attribute(&mut self, value: Attribute)
Sets attribute
to the provided enum value.
sourcepub fn resource_id(&self) -> &str
pub fn resource_id(&self) -> &str
Returns the value of resource_id
, or the default value if resource_id
is unset.
Trait Implementations§
source§impl Clone for ProductStatusChangeMessage
impl Clone for ProductStatusChangeMessage
source§fn clone(&self) -> ProductStatusChangeMessage
fn clone(&self) -> ProductStatusChangeMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProductStatusChangeMessage
impl Debug for ProductStatusChangeMessage
source§impl Default for ProductStatusChangeMessage
impl Default for ProductStatusChangeMessage
source§impl Message for ProductStatusChangeMessage
impl Message for ProductStatusChangeMessage
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for ProductStatusChangeMessage
impl PartialEq for ProductStatusChangeMessage
source§fn eq(&self, other: &ProductStatusChangeMessage) -> bool
fn eq(&self, other: &ProductStatusChangeMessage) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProductStatusChangeMessage
Auto Trait Implementations§
impl Freeze for ProductStatusChangeMessage
impl RefUnwindSafe for ProductStatusChangeMessage
impl Send for ProductStatusChangeMessage
impl Sync for ProductStatusChangeMessage
impl Unpin for ProductStatusChangeMessage
impl UnwindSafe for ProductStatusChangeMessage
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