pub struct AppResponseFundingConfig {
pub cross_chain_bridging_enabled: bool,
pub default_recommended_amount: String,
pub default_recommended_currency: AppResponseFundingConfigDefaultRecommendedCurrency,
pub methods: Vec<AppResponseFundingConfigMethodsItem>,
pub options: Vec<AppResponseFundingConfigOptionsItem>,
pub prompt_funding_on_wallet_creation: bool,
}Expand description
AppResponseFundingConfig
JSON schema
{
"type": "object",
"required": [
"cross_chain_bridging_enabled",
"default_recommended_amount",
"default_recommended_currency",
"methods",
"options",
"prompt_funding_on_wallet_creation"
],
"properties": {
"cross_chain_bridging_enabled": {
"type": "boolean"
},
"default_recommended_amount": {
"type": "string"
},
"default_recommended_currency": {
"type": "object",
"required": [
"chain"
],
"properties": {
"asset": {
"type": "string",
"enum": [
"USDC",
"native-currency"
]
},
"chain": {
"type": "string"
}
}
},
"methods": {
"type": "array",
"items": {
"type": "string",
"enum": [
"coinbase-onramp",
"external",
"moonpay"
]
}
},
"options": {
"type": "array",
"items": {
"type": "object",
"required": [
"method",
"provider"
],
"properties": {
"method": {
"type": "string"
},
"provider": {
"type": "string"
}
}
}
},
"prompt_funding_on_wallet_creation": {
"type": "boolean"
}
}
}Fields§
§cross_chain_bridging_enabled: bool§default_recommended_amount: String§default_recommended_currency: AppResponseFundingConfigDefaultRecommendedCurrency§methods: Vec<AppResponseFundingConfigMethodsItem>§options: Vec<AppResponseFundingConfigOptionsItem>§prompt_funding_on_wallet_creation: boolTrait Implementations§
Source§impl Clone for AppResponseFundingConfig
impl Clone for AppResponseFundingConfig
Source§fn clone(&self) -> AppResponseFundingConfig
fn clone(&self) -> AppResponseFundingConfig
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 AppResponseFundingConfig
impl Debug for AppResponseFundingConfig
Source§impl<'de> Deserialize<'de> for AppResponseFundingConfig
impl<'de> Deserialize<'de> for AppResponseFundingConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppResponseFundingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppResponseFundingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AppResponseFundingConfig> for AppResponseFundingConfig
impl From<&AppResponseFundingConfig> for AppResponseFundingConfig
Source§fn from(value: &AppResponseFundingConfig) -> AppResponseFundingConfig
fn from(value: &AppResponseFundingConfig) -> AppResponseFundingConfig
Converts to this type from the input type.
Source§impl Serialize for AppResponseFundingConfig
impl Serialize for AppResponseFundingConfig
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 AppResponseFundingConfig
impl RefUnwindSafe for AppResponseFundingConfig
impl Send for AppResponseFundingConfig
impl Sync for AppResponseFundingConfig
impl Unpin for AppResponseFundingConfig
impl UnwindSafe for AppResponseFundingConfig
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