pub enum SmartWalletConfiguration {
Variant0 {
enabled: bool,
},
Variant1 {
configured_networks: Vec<SmartWalletConfigurationVariant1ConfiguredNetworksItem>,
enabled: bool,
smart_wallet_type: SmartWalletConfigurationVariant1SmartWalletType,
smart_wallet_version: Option<String>,
},
}Expand description
The configuration object for smart wallets.
JSON schema
{
"title": "SmartWalletConfiguration",
"description": "The 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": [
"bundler_url",
"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"
}
}
}
]
}Variants§
Variant0
Variant1
Fields
§
configured_networks: Vec<SmartWalletConfigurationVariant1ConfiguredNetworksItem>§
smart_wallet_type: SmartWalletConfigurationVariant1SmartWalletTypeTrait Implementations§
Source§impl Clone for SmartWalletConfiguration
impl Clone for SmartWalletConfiguration
Source§fn clone(&self) -> SmartWalletConfiguration
fn clone(&self) -> SmartWalletConfiguration
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 SmartWalletConfiguration
impl Debug for SmartWalletConfiguration
Source§impl<'de> Deserialize<'de> for SmartWalletConfiguration
impl<'de> Deserialize<'de> for SmartWalletConfiguration
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SmartWalletConfiguration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SmartWalletConfiguration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SmartWalletConfiguration> for SmartWalletConfiguration
impl From<&SmartWalletConfiguration> for SmartWalletConfiguration
Source§fn from(value: &SmartWalletConfiguration) -> SmartWalletConfiguration
fn from(value: &SmartWalletConfiguration) -> SmartWalletConfiguration
Converts to this type from the input type.
Source§impl Serialize for SmartWalletConfiguration
impl Serialize for SmartWalletConfiguration
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 SmartWalletConfiguration
impl RefUnwindSafe for SmartWalletConfiguration
impl Send for SmartWalletConfiguration
impl Sync for SmartWalletConfiguration
impl Unpin for SmartWalletConfiguration
impl UnwindSafe for SmartWalletConfiguration
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