Struct google_api_proto::google::shopping::merchant::accounts::v1beta::TermsOfService
source · pub struct TermsOfService {
pub name: String,
pub region_code: String,
pub kind: i32,
pub file_uri: Option<String>,
pub external: bool,
}
Expand description
A TermsOfService
.
Fields§
§name: String
Identifier. The resource name of the terms of service version.
Format: termsOfService/{version}
region_code: String
Region code as defined by CLDR. This is either
a country where the ToS applies specifically to that country or 001
when
the same TermsOfService
can be signed in any country. However note that
when signing a ToS that applies globally we still expect that a specific
country is provided (this should be merchant business country or program
country of participation).
kind: i32
The Kind this terms of service version applies to.
file_uri: Option<String>
URI for terms of service file that needs to be displayed to signing users.
external: bool
Whether this terms of service version is external. External terms of service versions can only be agreed through external processes and not directly by the merchant through UI or API.
Implementations§
source§impl TermsOfService
impl TermsOfService
sourcepub fn kind(&self) -> TermsOfServiceKind
pub fn kind(&self) -> TermsOfServiceKind
Returns the enum value of kind
, or the default if the field is set to an invalid enum value.
sourcepub fn set_kind(&mut self, value: TermsOfServiceKind)
pub fn set_kind(&mut self, value: TermsOfServiceKind)
Sets kind
to the provided enum value.
Trait Implementations§
source§impl Clone for TermsOfService
impl Clone for TermsOfService
source§fn clone(&self) -> TermsOfService
fn clone(&self) -> TermsOfService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TermsOfService
impl Debug for TermsOfService
source§impl Default for TermsOfService
impl Default for TermsOfService
source§impl Message for TermsOfService
impl Message for TermsOfService
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 TermsOfService
impl PartialEq for TermsOfService
source§fn eq(&self, other: &TermsOfService) -> bool
fn eq(&self, other: &TermsOfService) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TermsOfService
Auto Trait Implementations§
impl Freeze for TermsOfService
impl RefUnwindSafe for TermsOfService
impl Send for TermsOfService
impl Sync for TermsOfService
impl Unpin for TermsOfService
impl UnwindSafe for TermsOfService
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