pub enum SmartWalletConfigurationInput {
Variant0 {
enabled: bool,
},
Variant1 {
configured_networks: Vec<SmartWalletConfigurationInputVariant1ConfiguredNetworksItem>,
enabled: bool,
smart_wallet_type: SmartWalletConfigurationInputVariant1SmartWalletType,
smart_wallet_version: Option<String>,
},
}Expand description
The input configuration object for smart wallets.
JSON schema
{
"title": "SmartWalletConfigurationInput",
"description": "The input configuration object for smart wallets.",
"oneOf": [
{
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"type": "boolean",
"enum": [
false
]
}
}
},
{
"type": "object",
"required": [
"configured_networks",
"enabled",
"smart_wallet_type"
],
"properties": {
"configured_networks": {
"type": "array",
"items": {
"type": "object",
"required": [
"chain_id"
],
"properties": {
"bundler_url": {
"type": "string"
},
"chain_id": {
"type": "string",
"pattern": "^eip155:\\d+$"
},
"chain_name": {
"type": "string"
},
"paymaster_context": {
"type": "object",
"required": [
"policy_id"
],
"properties": {
"policy_id": {
"type": "string",
"format": "uuid"
}
}
},
"paymaster_url": {
"type": "string"
},
"rpc_url": {
"type": "string"
}
}
},
"minItems": 1
},
"enabled": {
"type": "boolean",
"enum": [
true
]
},
"smart_wallet_type": {
"type": "string",
"enum": [
"biconomy",
"coinbase_smart_wallet",
"kernel",
"light_account",
"safe",
"thirdweb"
]
},
"smart_wallet_version": {
"type": [
"string",
"null"
]
}
}
}
]
}Variants§
Variant0
Variant1
Fields
§
configured_networks: Vec<SmartWalletConfigurationInputVariant1ConfiguredNetworksItem>§
smart_wallet_type: SmartWalletConfigurationInputVariant1SmartWalletTypeTrait Implementations§
Source§impl Clone for SmartWalletConfigurationInput
impl Clone for SmartWalletConfigurationInput
Source§fn clone(&self) -> SmartWalletConfigurationInput
fn clone(&self) -> SmartWalletConfigurationInput
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<'de> Deserialize<'de> for SmartWalletConfigurationInput
impl<'de> Deserialize<'de> for SmartWalletConfigurationInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SmartWalletConfigurationInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SmartWalletConfigurationInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SmartWalletConfigurationInput> for SmartWalletConfigurationInput
impl From<&SmartWalletConfigurationInput> for SmartWalletConfigurationInput
Source§fn from(value: &SmartWalletConfigurationInput) -> SmartWalletConfigurationInput
fn from(value: &SmartWalletConfigurationInput) -> SmartWalletConfigurationInput
Converts to this type from the input type.
Source§impl Serialize for SmartWalletConfigurationInput
impl Serialize for SmartWalletConfigurationInput
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 SmartWalletConfigurationInput
impl RefUnwindSafe for SmartWalletConfigurationInput
impl Send for SmartWalletConfigurationInput
impl Sync for SmartWalletConfigurationInput
impl Unpin for SmartWalletConfigurationInput
impl UnwindSafe for SmartWalletConfigurationInput
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