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 duplicate 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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CheckoutOption
impl PartialEq for CheckoutOption
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