Struct google_api_proto::google::shopping::merchant::accounts::v1beta::TermsOfServiceAgreementState
source · pub struct TermsOfServiceAgreementState {
pub name: String,
pub region_code: String,
pub terms_of_service_kind: i32,
pub accepted: Option<Accepted>,
pub required: Option<Required>,
}
Expand description
This resource represents the agreement state for a given account and terms of service kind. The state is as follows:
- If the merchant has accepted a terms of service: accepted will be populated, otherwise it will be empty
- If the merchant must sign a terms of service: required will be populated, otherwise it will be empty.
Note that both required and
accepted can be present. In this
case the accepted
terms of services will have an expiration date set in the
valid_until field. The required
terms of services
need to be accepted before valid_until
in order for the account to continue
having a valid agreement. When accepting new terms of services we expect 3Ps
to display the text associated with the given terms of service agreement (the
url to the file containing the text is added in the Required message below as
tos_file_uri. The actual acceptance of the terms of
service is done by calling accept on the TermsOfService
resource.
Fields§
§name: String
Identifier. The resource name of the terms of service version.
Format: accounts/{account}/termsOfServiceAgreementState/{identifier}
region_code: String
Region code as defined by https://cldr.unicode.org/. This is the country the current state applies to.
terms_of_service_kind: i32
Terms of Service kind associated with the particular version.
accepted: Option<Accepted>
The accepted terms of service of this kind and for the associated region_code
required: Option<Required>
The required terms of service
Implementations§
source§impl TermsOfServiceAgreementState
impl TermsOfServiceAgreementState
sourcepub fn terms_of_service_kind(&self) -> TermsOfServiceKind
pub fn terms_of_service_kind(&self) -> TermsOfServiceKind
Returns the enum value of terms_of_service_kind
, or the default if the field is set to an invalid enum value.
sourcepub fn set_terms_of_service_kind(&mut self, value: TermsOfServiceKind)
pub fn set_terms_of_service_kind(&mut self, value: TermsOfServiceKind)
Sets terms_of_service_kind
to the provided enum value.
Trait Implementations§
source§impl Clone for TermsOfServiceAgreementState
impl Clone for TermsOfServiceAgreementState
source§fn clone(&self) -> TermsOfServiceAgreementState
fn clone(&self) -> TermsOfServiceAgreementState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TermsOfServiceAgreementState
impl Debug for TermsOfServiceAgreementState
source§impl Message for TermsOfServiceAgreementState
impl Message for TermsOfServiceAgreementState
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 TermsOfServiceAgreementState
impl PartialEq for TermsOfServiceAgreementState
source§fn eq(&self, other: &TermsOfServiceAgreementState) -> bool
fn eq(&self, other: &TermsOfServiceAgreementState) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TermsOfServiceAgreementState
Auto Trait Implementations§
impl Freeze for TermsOfServiceAgreementState
impl RefUnwindSafe for TermsOfServiceAgreementState
impl Send for TermsOfServiceAgreementState
impl Sync for TermsOfServiceAgreementState
impl Unpin for TermsOfServiceAgreementState
impl UnwindSafe for TermsOfServiceAgreementState
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