pub struct WalletUpdateRequestBody {
pub additional_signers: Option<AdditionalSignerInput>,
pub display_name: Option<WalletUpdateRequestBodyDisplayName>,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
pub policy_ids: Vec<WalletUpdateRequestBodyPolicyIdsItem>,
}Expand description
Request body for updating a wallet. owner and owner_id are mutually
exclusive.
JSON schema
{
"title": "WalletUpdateRequestBody",
"description": "Request body for updating a wallet. `owner` and
`owner_id` are mutually exclusive.",
"type": "object",
"properties": {
"additional_signers": {
"$ref": "#/components/schemas/AdditionalSignerInput"
},
"display_name": {
"description": "A human-readable label for the wallet. Set to null
to clear.",
"type": "string",
"maxLength": 100
},
"owner": {
"allOf": [
{
"$ref": "#/components/schemas/OwnerInput"
},
{
"description": "New owner of the wallet. Cannot be used together with `owner_id`. Set to `null` to clear the existing owner."
}
]
},
"owner_id": {
"allOf": [
{
"$ref": "#/components/schemas/OwnerIdInput"
},
{
"description": "New key quorum ID to set as the owner of the
wallet. Cannot be used together with `owner`. Set to `null` to clear the
existing owner."
}
]
},
"policy_ids": {
"description": "New policy IDs to enforce on the wallet. Currently,
only one policy is supported per wallet.",
"type": "array",
"items": {
"type": "string",
"maxLength": 24,
"minLength": 24
},
"maxItems": 1
}
},
"x-stainless-model": "wallets.wallet_update_request_body"
}Fields§
§additional_signers: Option<AdditionalSignerInput>§display_name: Option<WalletUpdateRequestBodyDisplayName>A human-readable label for the wallet. Set to null to clear.
owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>§policy_ids: Vec<WalletUpdateRequestBodyPolicyIdsItem>New policy IDs to enforce on the wallet. Currently, only one policy is supported per wallet.
Trait Implementations§
Source§impl Clone for WalletUpdateRequestBody
impl Clone for WalletUpdateRequestBody
Source§fn clone(&self) -> WalletUpdateRequestBody
fn clone(&self) -> WalletUpdateRequestBody
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 WalletUpdateRequestBody
impl Debug for WalletUpdateRequestBody
Source§impl Default for WalletUpdateRequestBody
impl Default for WalletUpdateRequestBody
Source§impl<'de> Deserialize<'de> for WalletUpdateRequestBody
impl<'de> Deserialize<'de> for WalletUpdateRequestBody
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<&WalletUpdateRequestBody> for WalletUpdateRequestBody
impl From<&WalletUpdateRequestBody> for WalletUpdateRequestBody
Source§fn from(value: &WalletUpdateRequestBody) -> Self
fn from(value: &WalletUpdateRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletUpdateRequestBody
impl RefUnwindSafe for WalletUpdateRequestBody
impl Send for WalletUpdateRequestBody
impl Sync for WalletUpdateRequestBody
impl Unpin for WalletUpdateRequestBody
impl UnsafeUnpin for WalletUpdateRequestBody
impl UnwindSafe for WalletUpdateRequestBody
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