pub struct ElementsConfiguration {Show 15 fields
pub default_redirect_url: String,
pub error_ui_url: String,
pub hide_ory_branding: bool,
pub hide_registration_link: bool,
pub login_ui_url: String,
pub logo_dark_url: Option<String>,
pub logo_light_url: Option<String>,
pub name: String,
pub recovery_enabled: bool,
pub recovery_ui_url: String,
pub registration_enabled: bool,
pub registration_ui_url: String,
pub settings_ui_url: String,
pub verification_enabled: bool,
pub verification_ui_url: String,
}Expand description
ElementsConfiguration : ElementsConfiguration is the subset of a project’s configuration that Ory Elements consumes to customize its behavior and appearance. It mirrors the ProjectConfiguration type in @ory/elements-react and intentionally omits account-experience-only fields (stylesheet, locales, translations, favicons).
Fields§
§default_redirect_url: StringThe default redirect URL.
error_ui_url: StringThe URL for the error UI.
hide_ory_branding: boolWhether to hide the Ory branding badge.
hide_registration_link: boolWhether to hide the "Sign up" link on the login card footer.
login_ui_url: StringThe URL for the login UI.
logo_dark_url: Option<String>The URL for the dark logo.
logo_light_url: Option<String>The URL for the light logo on the auth card.
name: StringThe name of the project displayed on the auth card.
recovery_enabled: boolWhether recovery is enabled.
recovery_ui_url: StringThe URL for the recovery UI.
registration_enabled: boolWhether registration is enabled.
registration_ui_url: StringThe URL for the registration UI.
settings_ui_url: StringThe URL for the settings UI.
verification_enabled: boolWhether verification is enabled.
verification_ui_url: StringThe URL for the verification UI.
Implementations§
Source§impl ElementsConfiguration
impl ElementsConfiguration
Sourcepub fn new(
default_redirect_url: String,
error_ui_url: String,
hide_ory_branding: bool,
hide_registration_link: bool,
login_ui_url: String,
name: String,
recovery_enabled: bool,
recovery_ui_url: String,
registration_enabled: bool,
registration_ui_url: String,
settings_ui_url: String,
verification_enabled: bool,
verification_ui_url: String,
) -> ElementsConfiguration
pub fn new( default_redirect_url: String, error_ui_url: String, hide_ory_branding: bool, hide_registration_link: bool, login_ui_url: String, name: String, recovery_enabled: bool, recovery_ui_url: String, registration_enabled: bool, registration_ui_url: String, settings_ui_url: String, verification_enabled: bool, verification_ui_url: String, ) -> ElementsConfiguration
ElementsConfiguration is the subset of a project’s configuration that Ory Elements consumes to customize its behavior and appearance. It mirrors the ProjectConfiguration type in @ory/elements-react and intentionally omits account-experience-only fields (stylesheet, locales, translations, favicons).
Trait Implementations§
Source§impl Clone for ElementsConfiguration
impl Clone for ElementsConfiguration
Source§fn clone(&self) -> ElementsConfiguration
fn clone(&self) -> ElementsConfiguration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ElementsConfiguration
impl Debug for ElementsConfiguration
Source§impl Default for ElementsConfiguration
impl Default for ElementsConfiguration
Source§fn default() -> ElementsConfiguration
fn default() -> ElementsConfiguration
Source§impl<'de> Deserialize<'de> for ElementsConfiguration
impl<'de> Deserialize<'de> for ElementsConfiguration
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>,
Source§impl PartialEq for ElementsConfiguration
impl PartialEq for ElementsConfiguration
Source§fn eq(&self, other: &ElementsConfiguration) -> bool
fn eq(&self, other: &ElementsConfiguration) -> bool
self and other values to be equal, and is used by ==.