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