pub enum AppResponseSmartWalletConfig {
Variant0 {
enabled: bool,
},
Variant1 {
configured_networks: Vec<AppResponseSmartWalletConfigVariant1ConfiguredNetworksItem>,
enabled: bool,
smart_wallet_type: AppResponseSmartWalletConfigVariant1SmartWalletType,
smart_wallet_version: Option<String>,
},
}Expand description
AppResponseSmartWalletConfig
JSON schema
{
"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<AppResponseSmartWalletConfigVariant1ConfiguredNetworksItem>§
smart_wallet_type: AppResponseSmartWalletConfigVariant1SmartWalletTypeTrait Implementations§
Source§impl Clone for AppResponseSmartWalletConfig
impl Clone for AppResponseSmartWalletConfig
Source§fn clone(&self) -> AppResponseSmartWalletConfig
fn clone(&self) -> AppResponseSmartWalletConfig
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 AppResponseSmartWalletConfig
impl Debug for AppResponseSmartWalletConfig
Source§impl<'de> Deserialize<'de> for AppResponseSmartWalletConfig
impl<'de> Deserialize<'de> for AppResponseSmartWalletConfig
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<&AppResponseSmartWalletConfig> for AppResponseSmartWalletConfig
impl From<&AppResponseSmartWalletConfig> for AppResponseSmartWalletConfig
Source§fn from(value: &AppResponseSmartWalletConfig) -> Self
fn from(value: &AppResponseSmartWalletConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppResponseSmartWalletConfig
impl RefUnwindSafe for AppResponseSmartWalletConfig
impl Send for AppResponseSmartWalletConfig
impl Sync for AppResponseSmartWalletConfig
impl Unpin for AppResponseSmartWalletConfig
impl UnsafeUnpin for AppResponseSmartWalletConfig
impl UnwindSafe for AppResponseSmartWalletConfig
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