pub struct CheckoutOption {Show 15 fields
pub form_of_payment: Option<String>,
pub encoded_adjusted_cart: Option<String>,
pub instrument_id: Option<String>,
pub item: Vec<LineItem>,
pub sub_item: Vec<LineItem>,
pub total: Option<LineItem>,
pub footer_html: Vec<String>,
pub instrument_family: Option<i32>,
pub deprecated_instrument_inapplicable_reason: Vec<i32>,
pub selected_instrument: Option<bool>,
pub summary: Option<LineItem>,
pub footnote_html: Vec<String>,
pub instrument: Option<Instrument>,
pub purchase_cookie: Option<String>,
pub disabled_reason: Vec<String>,
}
Fields§
§form_of_payment: Option<String>
§encoded_adjusted_cart: Option<String>
§instrument_id: Option<String>
§item: Vec<LineItem>
§sub_item: Vec<LineItem>
§total: Option<LineItem>
§instrument_family: Option<i32>
§deprecated_instrument_inapplicable_reason: Vec<i32>
§selected_instrument: Option<bool>
§summary: Option<LineItem>
§footnote_html: Vec<String>
§instrument: Option<Instrument>
§disabled_reason: Vec<String>
Implementations§
source§impl CheckoutOption
impl CheckoutOption
sourcepub fn form_of_payment(&self) -> &str
pub fn form_of_payment(&self) -> &str
Returns the value of form_of_payment
, or the default value if form_of_payment
is unset.
sourcepub fn encoded_adjusted_cart(&self) -> &str
pub fn encoded_adjusted_cart(&self) -> &str
Returns the value of encoded_adjusted_cart
, or the default value if encoded_adjusted_cart
is unset.
sourcepub fn instrument_id(&self) -> &str
pub fn instrument_id(&self) -> &str
Returns the value of instrument_id
, or the default value if instrument_id
is unset.
sourcepub fn instrument_family(&self) -> i32
pub fn instrument_family(&self) -> i32
Returns the value of instrument_family
, or the default value if instrument_family
is unset.
sourcepub fn selected_instrument(&self) -> bool
pub fn selected_instrument(&self) -> bool
Returns the value of selected_instrument
, or the default value if selected_instrument
is unset.
Returns the value of purchase_cookie
, or the default value if purchase_cookie
is unset.
Trait Implementations§
source§impl Clone for CheckoutOption
impl Clone for CheckoutOption
source§fn clone(&self) -> CheckoutOption
fn clone(&self) -> CheckoutOption
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 CheckoutOption
impl Debug for CheckoutOption
source§impl Default for CheckoutOption
impl Default for CheckoutOption
source§impl Message for CheckoutOption
impl Message for CheckoutOption
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for CheckoutOption
impl PartialEq for CheckoutOption
source§fn eq(&self, other: &CheckoutOption) -> bool
fn eq(&self, other: &CheckoutOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CheckoutOption
Auto Trait Implementations§
impl Freeze for CheckoutOption
impl RefUnwindSafe for CheckoutOption
impl Send for CheckoutOption
impl Sync for CheckoutOption
impl Unpin for CheckoutOption
impl UnwindSafe for CheckoutOption
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