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<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<&AppResponseFundingConfig> for AppResponseFundingConfig
impl From<&AppResponseFundingConfig> for AppResponseFundingConfig
Source§fn from(value: &AppResponseFundingConfig) -> Self
fn from(value: &AppResponseFundingConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AppResponseFundingConfig
impl RefUnwindSafe for AppResponseFundingConfig
impl Send for AppResponseFundingConfig
impl Sync for AppResponseFundingConfig
impl Unpin for AppResponseFundingConfig
impl UnsafeUnpin 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