pub struct SettleBody {
pub final_amount_wei: Option<AtomicAmount>,
pub meter: Option<MeteredInput>,
pub payment_intent_id: SettleBodyPaymentIntentId,
}Expand description
SettleBody
JSON schema
{
"type": "object",
"required": [
"paymentIntentId"
],
"properties": {
"finalAmountWei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"meter": {
"$ref": "#/components/schemas/MeteredInput"
},
"paymentIntentId": {
"type": "string",
"minLength": 1
}
}
}Fields§
§final_amount_wei: Option<AtomicAmount>§meter: Option<MeteredInput>§payment_intent_id: SettleBodyPaymentIntentIdImplementations§
Source§impl SettleBody
impl SettleBody
pub fn builder() -> SettleBody
Trait Implementations§
Source§impl Clone for SettleBody
impl Clone for SettleBody
Source§fn clone(&self) -> SettleBody
fn clone(&self) -> SettleBody
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 SettleBody
impl Debug for SettleBody
Source§impl<'de> Deserialize<'de> for SettleBody
impl<'de> Deserialize<'de> for SettleBody
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<SettleBody> for SettleBody
impl From<SettleBody> for SettleBody
Source§fn from(value: SettleBody) -> Self
fn from(value: SettleBody) -> Self
Converts to this type from the input type.
Source§impl Serialize for SettleBody
impl Serialize for SettleBody
Source§impl TryFrom<SettleBody> for SettleBody
impl TryFrom<SettleBody> for SettleBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SettleBody) -> Result<Self, ConversionError>
fn try_from(value: SettleBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SettleBody
impl RefUnwindSafe for SettleBody
impl Send for SettleBody
impl Sync for SettleBody
impl Unpin for SettleBody
impl UnsafeUnpin for SettleBody
impl UnwindSafe for SettleBody
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