pub struct UpdateInstrumentResponse {
pub result: Option<i32>,
pub instrument_id: Option<String>,
pub user_message_html: Option<String>,
pub error_input_field: Vec<InputValidationError>,
pub checkout_token_required: Option<bool>,
pub redeemed_offer: Option<RedeemedPromoOffer>,
}Fields§
§result: Option<i32>§instrument_id: Option<String>§user_message_html: Option<String>§error_input_field: Vec<InputValidationError>§checkout_token_required: Option<bool>§redeemed_offer: Option<RedeemedPromoOffer>Implementations§
Source§impl UpdateInstrumentResponse
impl UpdateInstrumentResponse
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 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 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 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 UpdateInstrumentResponse
impl Clone for UpdateInstrumentResponse
Source§fn clone(&self) -> UpdateInstrumentResponse
fn clone(&self) -> UpdateInstrumentResponse
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 UpdateInstrumentResponse
impl Debug for UpdateInstrumentResponse
Source§impl Default for UpdateInstrumentResponse
impl Default for UpdateInstrumentResponse
Source§impl Message for UpdateInstrumentResponse
impl Message for UpdateInstrumentResponse
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 UpdateInstrumentResponse
impl PartialEq for UpdateInstrumentResponse
impl StructuralPartialEq for UpdateInstrumentResponse
Auto Trait Implementations§
impl Freeze for UpdateInstrumentResponse
impl RefUnwindSafe for UpdateInstrumentResponse
impl Send for UpdateInstrumentResponse
impl Sync for UpdateInstrumentResponse
impl Unpin for UpdateInstrumentResponse
impl UnwindSafe for UpdateInstrumentResponse
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