pub struct Invoice { /* private fields */ }
Expand description
Product invoice
Implementations§
Source§impl Invoice
impl Invoice
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InvoiceBuilder
pub fn currency(&self) -> &String
pub fn price_parts(&self) -> &Vec<LabeledPricePart>
pub fn max_tip_amount(&self) -> i64
pub fn suggested_tip_amounts(&self) -> &Vec<i64>
pub fn is_test(&self) -> bool
pub fn need_name(&self) -> bool
pub fn need_phone_number(&self) -> bool
pub fn need_email_address(&self) -> bool
pub fn need_shipping_address(&self) -> bool
pub fn send_phone_number_to_provider(&self) -> bool
pub fn send_email_address_to_provider(&self) -> bool
pub fn is_flexible(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Invoice
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnwindSafe for Invoice
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