pub struct SubAccountLimit {
pub created_at: Option<String>,
pub daily_limit: Option<String>,
pub id: Option<Uuid>,
pub is_active: Option<bool>,
pub last_reset_at: Option<String>,
pub master_account_id: Option<Uuid>,
pub max_amount: Option<String>,
pub sub_account_id: Option<Uuid>,
pub token: Option<String>,
pub updated_at: Option<String>,
pub used_today: Option<String>,
}Expand description
SubAccountLimit
JSON schema
{
"type": "object",
"properties": {
"created_at": {
"description": "Limit creation timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"daily_limit": {
"description": "Maximum daily spending limit in token units",
"examples": [
"1000.00"
],
"type": [
"string",
"null"
]
},
"id": {
"description": "Limit UUID",
"examples": [
"987e6543-e21b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"is_active": {
"description": "Whether the limit is active",
"examples": [
true
],
"type": [
"boolean",
"null"
]
},
"last_reset_at": {
"description": "Last reset timestamp for the daily limit (ISO 8601)",
"examples": [
"2023-11-13T00:00:00Z"
],
"type": [
"string",
"null"
]
},
"master_account_id": {
"description": "Master account UUID that owns this sub-account",
"examples": [
"123e4567-e89b-12d3-a456-426614174001"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"max_amount": {
"description": "Maximum amount allowed in token units",
"examples": [
"1500.00"
],
"type": [
"string",
"null"
]
},
"sub_account_id": {
"description": "Sub-account UUID this limit applies to",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"token": {
"description": "Token contract address",
"type": [
"string",
"null"
]
},
"updated_at": {
"description": "Last update timestamp (ISO 8601)",
"examples": [
"2023-11-13T10:30:00Z"
],
"type": [
"string",
"null"
]
},
"used_today": {
"description": "Amount used today against the limit",
"examples": [
"250.50"
],
"type": [
"string",
"null"
]
}
}
}Fields§
§created_at: Option<String>Limit creation timestamp (ISO 8601)
daily_limit: Option<String>Maximum daily spending limit in token units
id: Option<Uuid>Limit UUID
is_active: Option<bool>Whether the limit is active
last_reset_at: Option<String>Last reset timestamp for the daily limit (ISO 8601)
master_account_id: Option<Uuid>Master account UUID that owns this sub-account
max_amount: Option<String>Maximum amount allowed in token units
sub_account_id: Option<Uuid>Sub-account UUID this limit applies to
token: Option<String>Token contract address
updated_at: Option<String>Last update timestamp (ISO 8601)
used_today: Option<String>Amount used today against the limit
Trait Implementations§
Source§impl Clone for SubAccountLimit
impl Clone for SubAccountLimit
Source§fn clone(&self) -> SubAccountLimit
fn clone(&self) -> SubAccountLimit
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 SubAccountLimit
impl Debug for SubAccountLimit
Source§impl Default for SubAccountLimit
impl Default for SubAccountLimit
Source§impl<'de> Deserialize<'de> for SubAccountLimit
impl<'de> Deserialize<'de> for SubAccountLimit
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
Auto Trait Implementations§
impl Freeze for SubAccountLimit
impl RefUnwindSafe for SubAccountLimit
impl Send for SubAccountLimit
impl Sync for SubAccountLimit
impl Unpin for SubAccountLimit
impl UnsafeUnpin for SubAccountLimit
impl UnwindSafe for SubAccountLimit
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