pub struct MandatePolicyPeriodCap {
pub amount: String,
pub period: MandatePolicyPeriod,
}Expand description
One rolling cap over period (a trailing window, not a calendar period). Send both amount and period, or omit the object. The stored amount is capped at the Coinbase ceiling for that period. Enforced atomically at authorization so concurrent charges cannot exceed the cap.
JSON schema
{
"title": "Mandate Policy Period Cap",
"description": "One rolling cap over `period` (a trailing window, not a calendar period). Send both `amount` and `period`, or omit the object. The stored amount is capped at the Coinbase ceiling for that period. Enforced atomically at authorization so concurrent charges cannot exceed the cap.",
"examples": [
{
"amount": "500.00",
"period": "month"
}
],
"type": "object",
"required": [
"amount",
"period"
],
"properties": {
"amount": {
"description": "Max total authorizable in the rolling `period`. Capped at the Coinbase ceiling for `period`.",
"examples": [
"500.00"
],
"type": "string"
},
"period": {
"$ref": "#/components/schemas/MandatePolicyPeriod"
}
}
}Fields§
§amount: StringMax total authorizable in the rolling period. Capped at the Coinbase ceiling for period.
period: MandatePolicyPeriodImplementations§
Source§impl MandatePolicyPeriodCap
impl MandatePolicyPeriodCap
pub fn builder() -> MandatePolicyPeriodCap
Trait Implementations§
Source§impl Clone for MandatePolicyPeriodCap
impl Clone for MandatePolicyPeriodCap
Source§impl Debug for MandatePolicyPeriodCap
impl Debug for MandatePolicyPeriodCap
Source§impl<'de> Deserialize<'de> for MandatePolicyPeriodCap
impl<'de> Deserialize<'de> for MandatePolicyPeriodCap
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<&MandatePolicyPeriodCap> for MandatePolicyPeriodCap
impl From<&MandatePolicyPeriodCap> for MandatePolicyPeriodCap
Source§fn from(value: &MandatePolicyPeriodCap) -> Self
fn from(value: &MandatePolicyPeriodCap) -> Self
Converts to this type from the input type.
Source§impl From<MandatePolicyPeriodCap> for MandatePolicyPeriodCap
impl From<MandatePolicyPeriodCap> for MandatePolicyPeriodCap
Source§fn from(value: MandatePolicyPeriodCap) -> Self
fn from(value: MandatePolicyPeriodCap) -> Self
Converts to this type from the input type.
Source§impl Serialize for MandatePolicyPeriodCap
impl Serialize for MandatePolicyPeriodCap
Source§impl TryFrom<MandatePolicyPeriodCap> for MandatePolicyPeriodCap
impl TryFrom<MandatePolicyPeriodCap> for MandatePolicyPeriodCap
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MandatePolicyPeriodCap) -> Result<Self, ConversionError>
fn try_from(value: MandatePolicyPeriodCap) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MandatePolicyPeriodCap
impl RefUnwindSafe for MandatePolicyPeriodCap
impl Send for MandatePolicyPeriodCap
impl Sync for MandatePolicyPeriodCap
impl Unpin for MandatePolicyPeriodCap
impl UnsafeUnpin for MandatePolicyPeriodCap
impl UnwindSafe for MandatePolicyPeriodCap
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