pub struct BitPayInvoiceRequestModel {
pub user_id: Option<Uuid>,
pub organization_id: Option<Uuid>,
pub credit: Option<bool>,
pub amount: f64,
pub return_url: Option<String>,
pub name: Option<String>,
pub email: Option<String>,
}
Fields§
§user_id: Option<Uuid>
§organization_id: Option<Uuid>
§credit: Option<bool>
§amount: f64
§return_url: Option<String>
§name: Option<String>
§email: Option<String>
Implementations§
source§impl BitPayInvoiceRequestModel
impl BitPayInvoiceRequestModel
pub fn new(amount: f64) -> BitPayInvoiceRequestModel
Trait Implementations§
source§impl Clone for BitPayInvoiceRequestModel
impl Clone for BitPayInvoiceRequestModel
source§fn clone(&self) -> BitPayInvoiceRequestModel
fn clone(&self) -> BitPayInvoiceRequestModel
Returns a copy 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 BitPayInvoiceRequestModel
impl Debug for BitPayInvoiceRequestModel
source§impl Default for BitPayInvoiceRequestModel
impl Default for BitPayInvoiceRequestModel
source§fn default() -> BitPayInvoiceRequestModel
fn default() -> BitPayInvoiceRequestModel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BitPayInvoiceRequestModel
impl<'de> Deserialize<'de> for BitPayInvoiceRequestModel
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
source§impl PartialEq for BitPayInvoiceRequestModel
impl PartialEq for BitPayInvoiceRequestModel
source§fn eq(&self, other: &BitPayInvoiceRequestModel) -> bool
fn eq(&self, other: &BitPayInvoiceRequestModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BitPayInvoiceRequestModel
Auto Trait Implementations§
impl RefUnwindSafe for BitPayInvoiceRequestModel
impl Send for BitPayInvoiceRequestModel
impl Sync for BitPayInvoiceRequestModel
impl Unpin for BitPayInvoiceRequestModel
impl UnwindSafe for BitPayInvoiceRequestModel
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