pub struct PaymentPrepareRequest {
pub action: PaymentPrepareRequestAction,
pub idempotency_key: Option<String>,
pub max_amount_wei: Option<AtomicAmount>,
pub meter: Option<MeteredInput>,
pub method: PaymentPrepareRequestMethod,
pub resource: PaymentPrepareRequestResource,
pub run_id: Option<String>,
pub service: PaymentPrepareRequestService,
}Expand description
PaymentPrepareRequest
JSON schema
{
"type": "object",
"required": [
"action",
"method",
"resource",
"service"
],
"properties": {
"action": {
"type": "string",
"minLength": 1
},
"idempotencyKey": {
"type": "string"
},
"maxAmountWei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"meter": {
"$ref": "#/components/schemas/MeteredInput"
},
"method": {
"type": "string",
"minLength": 1
},
"resource": {
"type": "string",
"minLength": 1
},
"runId": {
"type": "string"
},
"service": {
"type": "string",
"minLength": 1
}
}
}Fields§
§action: PaymentPrepareRequestAction§idempotency_key: Option<String>§max_amount_wei: Option<AtomicAmount>§meter: Option<MeteredInput>§method: PaymentPrepareRequestMethod§resource: PaymentPrepareRequestResource§run_id: Option<String>§service: PaymentPrepareRequestServiceImplementations§
Source§impl PaymentPrepareRequest
impl PaymentPrepareRequest
pub fn builder() -> PaymentPrepareRequest
Trait Implementations§
Source§impl Clone for PaymentPrepareRequest
impl Clone for PaymentPrepareRequest
Source§fn clone(&self) -> PaymentPrepareRequest
fn clone(&self) -> PaymentPrepareRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaymentPrepareRequest
impl Debug for PaymentPrepareRequest
Source§impl<'de> Deserialize<'de> for PaymentPrepareRequest
impl<'de> Deserialize<'de> for PaymentPrepareRequest
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 From<PaymentPrepareRequest> for PaymentPrepareRequest
impl From<PaymentPrepareRequest> for PaymentPrepareRequest
Source§fn from(value: PaymentPrepareRequest) -> Self
fn from(value: PaymentPrepareRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentPrepareRequest
impl Serialize for PaymentPrepareRequest
Source§impl TryFrom<PaymentPrepareRequest> for PaymentPrepareRequest
impl TryFrom<PaymentPrepareRequest> for PaymentPrepareRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentPrepareRequest) -> Result<Self, ConversionError>
fn try_from(value: PaymentPrepareRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentPrepareRequest
impl RefUnwindSafe for PaymentPrepareRequest
impl Send for PaymentPrepareRequest
impl Sync for PaymentPrepareRequest
impl Unpin for PaymentPrepareRequest
impl UnsafeUnpin for PaymentPrepareRequest
impl UnwindSafe for PaymentPrepareRequest
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