pub struct ActiveSessionMetadata {
pub budget_limit: Option<AtomicAmount>,
pub budget_locked: Option<AtomicAmount>,
pub budget_remaining: Option<AtomicAmount>,
pub budget_used: Option<AtomicAmount>,
pub chain_id: Option<i64>,
pub expires_at: Option<i64>,
pub has_session: bool,
pub key_id: Option<String>,
pub name: Option<String>,
pub reason: Option<String>,
pub status: Map<String, Value>,
pub token: Option<String>,
}Expand description
ActiveSessionMetadata
JSON schema
{
"type": "object",
"required": [
"hasSession"
],
"properties": {
"budgetLimit": {
"$ref": "#/components/schemas/AtomicAmount"
},
"budgetLocked": {
"$ref": "#/components/schemas/AtomicAmount"
},
"budgetRemaining": {
"$ref": "#/components/schemas/AtomicAmount"
},
"budgetUsed": {
"$ref": "#/components/schemas/AtomicAmount"
},
"chainId": {
"type": "integer"
},
"expiresAt": {
"type": "integer"
},
"hasSession": {
"type": "boolean"
},
"keyId": {
"type": "string"
},
"name": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"type": "object",
"additionalProperties": true
},
"token": {
"type": "string"
}
}
}Fields§
§budget_limit: Option<AtomicAmount>§budget_locked: Option<AtomicAmount>§budget_remaining: Option<AtomicAmount>§budget_used: Option<AtomicAmount>§chain_id: Option<i64>§expires_at: Option<i64>§has_session: bool§key_id: Option<String>§name: Option<String>§reason: Option<String>§status: Map<String, Value>§token: Option<String>Implementations§
Source§impl ActiveSessionMetadata
impl ActiveSessionMetadata
pub fn builder() -> ActiveSessionMetadata
Trait Implementations§
Source§impl Clone for ActiveSessionMetadata
impl Clone for ActiveSessionMetadata
Source§fn clone(&self) -> ActiveSessionMetadata
fn clone(&self) -> ActiveSessionMetadata
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 ActiveSessionMetadata
impl Debug for ActiveSessionMetadata
Source§impl<'de> Deserialize<'de> for ActiveSessionMetadata
impl<'de> Deserialize<'de> for ActiveSessionMetadata
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<ActiveSessionMetadata> for ActiveSessionMetadata
impl From<ActiveSessionMetadata> for ActiveSessionMetadata
Source§fn from(value: ActiveSessionMetadata) -> Self
fn from(value: ActiveSessionMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for ActiveSessionMetadata
impl Serialize for ActiveSessionMetadata
Source§impl TryFrom<ActiveSessionMetadata> for ActiveSessionMetadata
impl TryFrom<ActiveSessionMetadata> for ActiveSessionMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ActiveSessionMetadata) -> Result<Self, ConversionError>
fn try_from(value: ActiveSessionMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ActiveSessionMetadata
impl RefUnwindSafe for ActiveSessionMetadata
impl Send for ActiveSessionMetadata
impl Sync for ActiveSessionMetadata
impl Unpin for ActiveSessionMetadata
impl UnsafeUnpin for ActiveSessionMetadata
impl UnwindSafe for ActiveSessionMetadata
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