AppResponse

Struct AppResponse 

Source
pub struct AppResponse {
Show 54 fields pub accent_color: Option<String>, pub allowed_domains: Vec<String>, pub allowed_native_app_ids: Vec<String>, pub allowed_native_app_url_schemes: Vec<String>, pub allowlist_config: AppResponseAllowlistConfig, pub allowlist_enabled: bool, pub apple_oauth: bool, pub captcha_enabled: bool, pub captcha_site_key: Option<String>, pub custom_api_url: Option<String>, pub custom_jwt_auth: bool, pub custom_oauth_providers: Vec<AppResponseCustomOauthProvidersItem>, pub disable_plus_emails: bool, pub discord_oauth: bool, pub email_auth: bool, pub embedded_wallet_config: AppResponseEmbeddedWalletConfig, pub enforce_wallet_uis: bool, pub farcaster_auth: bool, pub farcaster_link_wallets_enabled: bool, pub fiat_on_ramp_enabled: bool, pub funding_config: Option<AppResponseFundingConfig>, pub github_oauth: bool, pub google_oauth: bool, pub guest_auth: bool, pub icon_url: Option<String>, pub id: String, pub instagram_oauth: bool, pub legacy_wallet_ui_config: bool, pub line_oauth: bool, pub linkedin_oauth: bool, pub logo_url: Option<String>, pub max_linked_wallets_per_user: Option<f64>, pub mfa_methods: Vec<AppResponseMfaMethodsItem>, pub name: String, pub passkey_auth: bool, pub passkeys_for_signup_enabled: bool, pub privacy_policy_url: Option<String>, pub require_users_accept_terms: Option<bool>, pub show_wallet_login_first: bool, pub sms_auth: bool, pub solana_wallet_auth: bool, pub spotify_oauth: bool, pub telegram_auth: bool, pub telegram_auth_config: Option<AppResponseTelegramAuthConfig>, pub terms_and_conditions_url: Option<String>, pub theme: String, pub tiktok_oauth: bool, pub twitch_oauth: bool, pub twitter_oauth: bool, pub twitter_oauth_on_mobile_enabled: bool, pub verification_key: String, pub wallet_auth: bool, pub wallet_connect_cloud_project_id: Option<String>, pub whatsapp_enabled: bool,
}
Expand description

The response for getting an app.

JSON schema
{
 "title": "AppResponse",
 "description": "The response for getting an app.",
 "type": "object",
 "required": [
   "accent_color",
   "allowed_domains",
   "allowed_native_app_ids",
   "allowed_native_app_url_schemes",
   "allowlist_config",
   "allowlist_enabled",
   "apple_oauth",
   "captcha_enabled",
   "custom_api_url",
   "custom_jwt_auth",
   "custom_oauth_providers",
   "disable_plus_emails",
   "discord_oauth",
   "email_auth",
   "embedded_wallet_config",
   "enforce_wallet_uis",
   "farcaster_auth",
   "farcaster_link_wallets_enabled",
   "fiat_on_ramp_enabled",
   "github_oauth",
   "google_oauth",
   "guest_auth",
   "icon_url",
   "id",
   "instagram_oauth",
   "legacy_wallet_ui_config",
   "line_oauth",
   "linkedin_oauth",
   "logo_url",
   "max_linked_wallets_per_user",
   "mfa_methods",
   "name",
   "passkey_auth",
   "passkeys_for_signup_enabled",
   "privacy_policy_url",
   "require_users_accept_terms",
   "show_wallet_login_first",
   "sms_auth",
   "solana_wallet_auth",
   "spotify_oauth",
   "telegram_auth",
   "terms_and_conditions_url",
   "theme",
   "tiktok_oauth",
   "twitch_oauth",
   "twitter_oauth",
   "twitter_oauth_on_mobile_enabled",
   "verification_key",
   "wallet_auth",
   "wallet_connect_cloud_project_id",
   "whatsapp_enabled"
 ],
 "properties": {
   "accent_color": {
     "type": [
       "string",
       "null"
     ]
   },
   "allowed_domains": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "allowed_native_app_ids": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "allowed_native_app_url_schemes": {
     "type": "array",
     "items": {
       "type": "string"
     }
   },
   "allowlist_config": {
     "type": "object",
     "required": [
       "cta_link",
       "cta_text",
       "error_detail",
       "error_title"
     ],
     "properties": {
       "cta_link": {
         "type": [
           "string",
           "null"
         ]
       },
       "cta_text": {
         "type": [
           "string",
           "null"
         ]
       },
       "error_detail": {
         "type": [
           "string",
           "null"
         ]
       },
       "error_title": {
         "type": [
           "string",
           "null"
         ]
       }
     }
   },
   "allowlist_enabled": {
     "type": "boolean"
   },
   "apple_oauth": {
     "type": "boolean"
   },
   "captcha_enabled": {
     "type": "boolean"
   },
   "captcha_site_key": {
     "type": "string"
   },
   "custom_api_url": {
     "type": [
       "string",
       "null"
     ]
   },
   "custom_jwt_auth": {
     "type": "boolean"
   },
   "custom_oauth_providers": {
     "type": "array",
     "items": {
       "type": "object",
       "required": [
         "enabled",
         "provider",
         "provider_display_name",
         "provider_icon_url"
       ],
       "properties": {
         "enabled": {
           "type": "boolean"
         },
         "provider": {
           "$ref": "#/components/schemas/CustomOAuthProviderID"
         },
         "provider_display_name": {
           "type": "string"
         },
         "provider_icon_url": {
           "type": "string"
         }
       }
     }
   },
   "disable_plus_emails": {
     "type": "boolean"
   },
   "discord_oauth": {
     "type": "boolean"
   },
   "email_auth": {
     "type": "boolean"
   },
   "embedded_wallet_config": {
     "type": "object",
     "required": [
       "create_on_login",
       "ethereum",
       "mode",
       "solana",
       "user_owned_recovery_options"
     ],
     "properties": {
       "create_on_login": {
         "type": "string",
         "enum": [
           "all-users",
           "off",
           "users-without-wallets"
         ]
       },
       "ethereum": {
         "type": "object",
         "required": [
           "create_on_login"
         ],
         "properties": {
           "create_on_login": {
             "type": "string",
             "enum": [
               "all-users",
               "off",
               "users-without-wallets"
             ]
           }
         }
       },
       "mode": {
         "type": "string",
         "enum": [
           "legacy-embedded-wallets-only",
           "user-controlled-server-wallets-only"
         ]
       },
       "require_user_owned_recovery_on_create": {
         "type": "boolean"
       },
       "require_user_password_on_create": {
         "type": "boolean"
       },
       "solana": {
         "type": "object",
         "required": [
           "create_on_login"
         ],
         "properties": {
           "create_on_login": {
             "type": "string",
             "enum": [
               "all-users",
               "off",
               "users-without-wallets"
             ]
           }
         }
       },
       "user_owned_recovery_options": {
         "type": "array",
         "items": {
           "type": "string",
           "enum": [
             "google-drive",
             "icloud",
             "user-passcode"
           ]
         }
       }
     }
   },
   "enforce_wallet_uis": {
     "type": "boolean"
   },
   "farcaster_auth": {
     "type": "boolean"
   },
   "farcaster_link_wallets_enabled": {
     "type": "boolean"
   },
   "fiat_on_ramp_enabled": {
     "type": "boolean"
   },
   "funding_config": {
     "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"
       }
     }
   },
   "github_oauth": {
     "type": "boolean"
   },
   "google_oauth": {
     "type": "boolean"
   },
   "guest_auth": {
     "type": "boolean"
   },
   "icon_url": {
     "type": [
       "string",
       "null"
     ]
   },
   "id": {
     "type": "string"
   },
   "instagram_oauth": {
     "type": "boolean"
   },
   "legacy_wallet_ui_config": {
     "type": "boolean"
   },
   "line_oauth": {
     "type": "boolean"
   },
   "linkedin_oauth": {
     "type": "boolean"
   },
   "logo_url": {
     "type": [
       "string",
       "null"
     ]
   },
   "max_linked_wallets_per_user": {
     "type": [
       "number",
       "null"
     ]
   },
   "mfa_methods": {
     "type": "array",
     "items": {
       "type": "string",
       "enum": [
         "passkey",
         "sms",
         "totp"
       ]
     }
   },
   "name": {
     "type": "string"
   },
   "passkey_auth": {
     "type": "boolean"
   },
   "passkeys_for_signup_enabled": {
     "type": "boolean"
   },
   "privacy_policy_url": {
     "type": [
       "string",
       "null"
     ]
   },
   "require_users_accept_terms": {
     "type": [
       "boolean",
       "null"
     ]
   },
   "show_wallet_login_first": {
     "type": "boolean"
   },
   "sms_auth": {
     "type": "boolean"
   },
   "solana_wallet_auth": {
     "type": "boolean"
   },
   "spotify_oauth": {
     "type": "boolean"
   },
   "telegram_auth": {
     "type": "boolean"
   },
   "telegram_auth_config": {
     "type": "object",
     "required": [
       "bot_id",
       "bot_name",
       "link_enabled",
       "seamless_auth_enabled"
     ],
     "properties": {
       "bot_id": {
         "type": "string"
       },
       "bot_name": {
         "type": "string"
       },
       "link_enabled": {
         "type": "boolean"
       },
       "seamless_auth_enabled": {
         "type": "boolean"
       }
     }
   },
   "terms_and_conditions_url": {
     "type": [
       "string",
       "null"
     ]
   },
   "theme": {
     "type": "string"
   },
   "tiktok_oauth": {
     "type": "boolean"
   },
   "twitch_oauth": {
     "type": "boolean"
   },
   "twitter_oauth": {
     "type": "boolean"
   },
   "twitter_oauth_on_mobile_enabled": {
     "type": "boolean"
   },
   "verification_key": {
     "type": "string"
   },
   "wallet_auth": {
     "type": "boolean"
   },
   "wallet_connect_cloud_project_id": {
     "type": [
       "string",
       "null"
     ]
   },
   "whatsapp_enabled": {
     "type": "boolean"
   }
 }
}

Fields§

§accent_color: Option<String>§allowed_domains: Vec<String>§allowed_native_app_ids: Vec<String>§allowed_native_app_url_schemes: Vec<String>§allowlist_config: AppResponseAllowlistConfig§allowlist_enabled: bool§apple_oauth: bool§captcha_enabled: bool§captcha_site_key: Option<String>§custom_api_url: Option<String>§custom_jwt_auth: bool§custom_oauth_providers: Vec<AppResponseCustomOauthProvidersItem>§disable_plus_emails: bool§discord_oauth: bool§email_auth: bool§embedded_wallet_config: AppResponseEmbeddedWalletConfig§enforce_wallet_uis: bool§farcaster_auth: bool§farcaster_link_wallets_enabled: bool§fiat_on_ramp_enabled: bool§funding_config: Option<AppResponseFundingConfig>§github_oauth: bool§google_oauth: bool§guest_auth: bool§icon_url: Option<String>§id: String§instagram_oauth: bool§legacy_wallet_ui_config: bool§line_oauth: bool§linkedin_oauth: bool§logo_url: Option<String>§max_linked_wallets_per_user: Option<f64>§mfa_methods: Vec<AppResponseMfaMethodsItem>§name: String§passkey_auth: bool§passkeys_for_signup_enabled: bool§privacy_policy_url: Option<String>§require_users_accept_terms: Option<bool>§show_wallet_login_first: bool§sms_auth: bool§solana_wallet_auth: bool§spotify_oauth: bool§telegram_auth: bool§telegram_auth_config: Option<AppResponseTelegramAuthConfig>§terms_and_conditions_url: Option<String>§theme: String§tiktok_oauth: bool§twitch_oauth: bool§twitter_oauth: bool§twitter_oauth_on_mobile_enabled: bool§verification_key: String§wallet_auth: bool§wallet_connect_cloud_project_id: Option<String>§whatsapp_enabled: bool

Trait Implementations§

Source§

impl Clone for AppResponse

Source§

fn clone(&self) -> AppResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AppResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AppResponse

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<AppResponse, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&AppResponse> for AppResponse

Source§

fn from(value: &AppResponse) -> AppResponse

Converts to this type from the input type.
Source§

impl Serialize for AppResponse

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,