pub struct OnrampUserLimit {
pub currency: Option<String>,
pub limit: String,
pub limit_type: OnrampLimitType,
pub remaining: String,
}Expand description
A single limit with remaining capacity.
JSON schema
{
"description": "A single limit with remaining capacity.",
"type": "object",
"required": [
"limit",
"limitType",
"remaining"
],
"properties": {
"currency": {
"description": "The currency of the limit amounts. Only present for spending limits, not for count-based limits.",
"examples": [
"USD"
],
"type": "string"
},
"limit": {
"description": "The maximum limit value.",
"examples": [
"2500"
],
"type": "string"
},
"limitType": {
"$ref": "#/components/schemas/OnrampLimitType"
},
"remaining": {
"description": "The remaining amount or count available.",
"examples": [
"2000"
],
"type": "string"
}
}
}Fields§
§currency: Option<String>The currency of the limit amounts. Only present for spending limits, not for count-based limits.
limit: StringThe maximum limit value.
limit_type: OnrampLimitType§remaining: StringThe remaining amount or count available.
Implementations§
Source§impl OnrampUserLimit
impl OnrampUserLimit
pub fn builder() -> OnrampUserLimit
Trait Implementations§
Source§impl Clone for OnrampUserLimit
impl Clone for OnrampUserLimit
Source§fn clone(&self) -> OnrampUserLimit
fn clone(&self) -> OnrampUserLimit
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 OnrampUserLimit
impl Debug for OnrampUserLimit
Source§impl<'de> Deserialize<'de> for OnrampUserLimit
impl<'de> Deserialize<'de> for OnrampUserLimit
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<&OnrampUserLimit> for OnrampUserLimit
impl From<&OnrampUserLimit> for OnrampUserLimit
Source§fn from(value: &OnrampUserLimit) -> Self
fn from(value: &OnrampUserLimit) -> Self
Converts to this type from the input type.
Source§impl From<OnrampUserLimit> for OnrampUserLimit
impl From<OnrampUserLimit> for OnrampUserLimit
Source§fn from(value: OnrampUserLimit) -> Self
fn from(value: OnrampUserLimit) -> Self
Converts to this type from the input type.
Source§impl Serialize for OnrampUserLimit
impl Serialize for OnrampUserLimit
Source§impl TryFrom<OnrampUserLimit> for OnrampUserLimit
impl TryFrom<OnrampUserLimit> for OnrampUserLimit
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OnrampUserLimit) -> Result<Self, ConversionError>
fn try_from(value: OnrampUserLimit) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OnrampUserLimit
impl RefUnwindSafe for OnrampUserLimit
impl Send for OnrampUserLimit
impl Sync for OnrampUserLimit
impl Unpin for OnrampUserLimit
impl UnsafeUnpin for OnrampUserLimit
impl UnwindSafe for OnrampUserLimit
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