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