pub struct UpdateLimitRequest {
pub asset_id: Option<Uuid>,
pub daily_limit: Option<UpdateLimitRequestDailyLimit>,
pub is_active: Option<bool>,
pub max_amount: Option<UpdateLimitRequestMaxAmount>,
pub sub_account_id: Option<Uuid>,
}Expand description
UpdateLimitRequest
JSON schema
{
"type": "object",
"properties": {
"asset_id": {
"description": "Asset UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
},
"daily_limit": {
"description": "New maximum daily spending limit in token units",
"examples": [
"500.00"
],
"type": [
"string",
"null"
],
"minLength": 1,
"pattern": "^-?[0-9]{1,28}(\\.[0-9]{1,18})?$"
},
"is_active": {
"description": "Whether the limit is active",
"examples": [
true
],
"type": [
"boolean",
"null"
]
},
"max_amount": {
"description": "New maximum amount allowed in token units",
"examples": [
"1500.00"
],
"type": [
"string",
"null"
],
"minLength": 1,
"pattern": "^-?[0-9]{1,28}(\\.[0-9]{1,18})?$"
},
"sub_account_id": {
"description": "Sub-account UUID",
"examples": [
"123e4567-e89b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
},
"additionalProperties": false
}Fields§
§asset_id: Option<Uuid>Asset UUID
daily_limit: Option<UpdateLimitRequestDailyLimit>New maximum daily spending limit in token units
is_active: Option<bool>Whether the limit is active
max_amount: Option<UpdateLimitRequestMaxAmount>New maximum amount allowed in token units
sub_account_id: Option<Uuid>Sub-account UUID
Trait Implementations§
Source§impl Clone for UpdateLimitRequest
impl Clone for UpdateLimitRequest
Source§fn clone(&self) -> UpdateLimitRequest
fn clone(&self) -> UpdateLimitRequest
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 UpdateLimitRequest
impl Debug for UpdateLimitRequest
Source§impl Default for UpdateLimitRequest
impl Default for UpdateLimitRequest
Source§impl<'de> Deserialize<'de> for UpdateLimitRequest
impl<'de> Deserialize<'de> for UpdateLimitRequest
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 UpdateLimitRequest
impl RefUnwindSafe for UpdateLimitRequest
impl Send for UpdateLimitRequest
impl Sync for UpdateLimitRequest
impl Unpin for UpdateLimitRequest
impl UnsafeUnpin for UpdateLimitRequest
impl UnwindSafe for UpdateLimitRequest
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