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>footer_html: Vec<String>instrument_family: Option<i32>deprecated_instrument_inapplicable_reason: Vec<i32>selected_instrument: Option<bool>summary: Option<LineItem>footnote_html: Vec<String>instrument: Option<Instrument>purchase_cookie: Option<String>disabled_reason: Vec<String>

Implementations

Returns the value of form_of_payment, or the default value if form_of_payment is unset.

Returns the value of encoded_adjusted_cart, or the default value if encoded_adjusted_cart is unset.

Returns the value of instrument_id, or the default value if instrument_id is unset.

Returns the value of instrument_family, or the default value if instrument_family is unset.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.