pub struct RedeemGiftCardResponse {
pub result: Option<i32>,
pub user_message_html: Option<String>,
pub balance_html: Option<String>,
pub address_challenge: Option<AddressChallenge>,
pub checkout_token_required: Option<bool>,
}Fields§
§result: Option<i32>§user_message_html: Option<String>§balance_html: Option<String>§address_challenge: Option<AddressChallenge>§checkout_token_required: Option<bool>Implementations§
Source§impl RedeemGiftCardResponse
impl RedeemGiftCardResponse
Sourcepub fn result(&self) -> i32
pub fn result(&self) -> i32
Returns the value of result, or the default value if result is unset.
Sourcepub fn user_message_html(&self) -> &str
pub fn user_message_html(&self) -> &str
Returns the value of user_message_html, or the default value if user_message_html is unset.
Sourcepub fn balance_html(&self) -> &str
pub fn balance_html(&self) -> &str
Returns the value of balance_html, or the default value if balance_html is unset.
Sourcepub fn checkout_token_required(&self) -> bool
pub fn checkout_token_required(&self) -> bool
Returns the value of checkout_token_required, or the default value if checkout_token_required is unset.
Trait Implementations§
Source§impl Clone for RedeemGiftCardResponse
impl Clone for RedeemGiftCardResponse
Source§fn clone(&self) -> RedeemGiftCardResponse
fn clone(&self) -> RedeemGiftCardResponse
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 RedeemGiftCardResponse
impl Debug for RedeemGiftCardResponse
Source§impl Default for RedeemGiftCardResponse
impl Default for RedeemGiftCardResponse
Source§impl Message for RedeemGiftCardResponse
impl Message for RedeemGiftCardResponse
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 RedeemGiftCardResponse
impl PartialEq for RedeemGiftCardResponse
impl StructuralPartialEq for RedeemGiftCardResponse
Auto Trait Implementations§
impl Freeze for RedeemGiftCardResponse
impl RefUnwindSafe for RedeemGiftCardResponse
impl Send for RedeemGiftCardResponse
impl Sync for RedeemGiftCardResponse
impl Unpin for RedeemGiftCardResponse
impl UnwindSafe for RedeemGiftCardResponse
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