pub struct CreateWalletBody {
pub additional_signers: Option<WalletAdditionalSigner>,
pub chain_type: WalletChainType,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
pub policy_ids: Vec<CreateWalletBodyPolicyIdsItem>,
}Expand description
CreateWalletBody
JSON schema
{
"examples": [
{
"chain_type": "ethereum"
}
],
"type": "object",
"required": [
"chain_type"
],
"properties": {
"additional_signers": {
"$ref": "#/components/schemas/WalletAdditionalSigner"
},
"chain_type": {
"$ref": "#/components/schemas/WalletChainType"
},
"owner": {
"$ref": "#/components/schemas/OwnerInput"
},
"owner_id": {
"$ref": "#/components/schemas/OwnerIdInput"
},
"policy_ids": {
"description": "List of policy IDs for policies that should be
enforced on the wallet. Currently, only one policy is supported per
wallet.",
"type": "array",
"items": {
"type": "string",
"maxLength": 24,
"minLength": 24
},
"maxItems": 1
}
}
}Fields§
§additional_signers: Option<WalletAdditionalSigner>§chain_type: WalletChainType§owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>§policy_ids: Vec<CreateWalletBodyPolicyIdsItem>List of policy IDs for policies that should be enforced on the wallet. Currently, only one policy is supported per wallet.
Trait Implementations§
Source§impl Clone for CreateWalletBody
impl Clone for CreateWalletBody
Source§fn clone(&self) -> CreateWalletBody
fn clone(&self) -> CreateWalletBody
Returns a duplicate of the value. Read more
1.0.0 · 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 CreateWalletBody
impl Debug for CreateWalletBody
Source§impl<'de> Deserialize<'de> for CreateWalletBody
impl<'de> Deserialize<'de> for CreateWalletBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateWalletBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateWalletBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CreateWalletBody> for CreateWalletBody
impl From<&CreateWalletBody> for CreateWalletBody
Source§fn from(value: &CreateWalletBody) -> CreateWalletBody
fn from(value: &CreateWalletBody) -> CreateWalletBody
Converts to this type from the input type.
Source§impl Serialize for CreateWalletBody
impl Serialize for CreateWalletBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreateWalletBody
impl RefUnwindSafe for CreateWalletBody
impl Send for CreateWalletBody
impl Sync for CreateWalletBody
impl Unpin for CreateWalletBody
impl UnwindSafe for CreateWalletBody
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