pub struct PaymentBody {
pub customer: String,
pub server_id: i32,
pub products: HashMap<String, i32>,
pub email: String,
pub coupon: Option<String>,
pub success_url: Option<String>,
}
Fields§
§customer: String
§server_id: i32
§products: HashMap<String, i32>
§email: String
§coupon: Option<String>
§success_url: Option<String>
Trait Implementations§
Source§impl Clone for PaymentBody
impl Clone for PaymentBody
Source§fn clone(&self) -> PaymentBody
fn clone(&self) -> PaymentBody
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 PaymentBody
impl Debug for PaymentBody
Auto Trait Implementations§
impl Freeze for PaymentBody
impl RefUnwindSafe for PaymentBody
impl Send for PaymentBody
impl Sync for PaymentBody
impl Unpin for PaymentBody
impl UnwindSafe for PaymentBody
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