pub struct InternalMerchOrderPostRequest {
pub idempotent_id: Option<String>,
pub merchandise_id: Option<String>,
pub account_id: Option<String>,
pub pay_by_account_id: Option<String>,
pub resource_id: Option<String>,
pub quantity: Option<f64>,
pub comment: Option<String>,
}
Fields§
§idempotent_id: Option<String>
§merchandise_id: Option<String>
§account_id: Option<String>
§pay_by_account_id: Option<String>
§resource_id: Option<String>
§quantity: Option<f64>
§comment: Option<String>
Implementations§
Source§impl InternalMerchOrderPostRequest
impl InternalMerchOrderPostRequest
pub fn new() -> Self
pub fn with_idempotent_id(self, idempotent_id: String) -> Self
pub fn with_merchandise_id(self, merchandise_id: String) -> Self
pub fn with_account_id(self, account_id: String) -> Self
pub fn with_pay_by_account_id(self, pay_by_account_id: String) -> Self
pub fn with_resource_id(self, resource_id: String) -> Self
pub fn with_quantity(self, quantity: f64) -> Self
pub fn with_comment(self, comment: String) -> Self
Trait Implementations§
Source§impl Clone for InternalMerchOrderPostRequest
impl Clone for InternalMerchOrderPostRequest
Source§fn clone(&self) -> InternalMerchOrderPostRequest
fn clone(&self) -> InternalMerchOrderPostRequest
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 Default for InternalMerchOrderPostRequest
impl Default for InternalMerchOrderPostRequest
Source§fn default() -> InternalMerchOrderPostRequest
fn default() -> InternalMerchOrderPostRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InternalMerchOrderPostRequestwhere
InternalMerchOrderPostRequest: Default,
impl<'de> Deserialize<'de> for InternalMerchOrderPostRequestwhere
InternalMerchOrderPostRequest: Default,
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 HttpBuilder for InternalMerchOrderPostRequest
impl HttpBuilder for InternalMerchOrderPostRequest
type Response = BaseResponse<InternalMerchOrderPostResponse>
fn builder(self) -> HttpFn<Self::Response>
Auto Trait Implementations§
impl Freeze for InternalMerchOrderPostRequest
impl RefUnwindSafe for InternalMerchOrderPostRequest
impl Send for InternalMerchOrderPostRequest
impl Sync for InternalMerchOrderPostRequest
impl Unpin for InternalMerchOrderPostRequest
impl UnwindSafe for InternalMerchOrderPostRequest
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