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
sourceimpl 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
sourceimpl Clone for CheckoutOption
impl Clone for CheckoutOption
sourcefn clone(&self) -> CheckoutOption
fn clone(&self) -> CheckoutOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CheckoutOption
impl Debug for CheckoutOption
sourceimpl Default for CheckoutOption
impl Default for CheckoutOption
sourceimpl Message for CheckoutOption
impl Message for CheckoutOption
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn 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,
Decodes an instance of the message from a buffer. Read more
sourcefn 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,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<CheckoutOption> for CheckoutOption
impl PartialEq<CheckoutOption> for CheckoutOption
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &CheckoutOption) -> bool
fn ne(&self, other: &CheckoutOption) -> bool
This method tests for !=
.
impl StructuralPartialEq for CheckoutOption
Auto Trait Implementations
impl RefUnwindSafe for CheckoutOption
impl Send for CheckoutOption
impl Sync for CheckoutOption
impl Unpin for CheckoutOption
impl UnwindSafe for CheckoutOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more