Skip to main content

ElementsConfiguration

Struct ElementsConfiguration 

Source
pub struct ElementsConfiguration {
Show 18 fields pub contact_url: Option<String>, 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 privacy_policy_url: Option<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 terms_of_service_url: Option<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§

§contact_url: Option<String>

The URL to the project’s Contact page.

§default_redirect_url: String

The default redirect URL.

§error_ui_url: String

The URL for the error UI.

§hide_ory_branding: bool

Whether to hide the Ory branding badge.

§hide_registration_link: bool

Whether to hide the "Sign up" link on the login card footer.

§login_ui_url: String

The 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: String

The name of the project displayed on the auth card.

§privacy_policy_url: Option<String>

The URL to the project’s Privacy Policy page.

§recovery_enabled: bool

Whether recovery is enabled.

§recovery_ui_url: String

The URL for the recovery UI.

§registration_enabled: bool

Whether registration is enabled.

§registration_ui_url: String

The URL for the registration UI.

§settings_ui_url: String

The URL for the settings UI.

§terms_of_service_url: Option<String>

The URL to the project’s Terms of Service page.

§verification_enabled: bool

Whether verification is enabled.

§verification_ui_url: String

The URL for the verification UI.

Implementations§

Source§

impl ElementsConfiguration

Source

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

Source§

fn clone(&self) -> ElementsConfiguration

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ElementsConfiguration

Source§

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

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

impl Default for ElementsConfiguration

Source§

fn default() -> ElementsConfiguration

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ElementsConfiguration

Source§

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 PartialEq for ElementsConfiguration

Source§

fn eq(&self, other: &ElementsConfiguration) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ElementsConfiguration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ElementsConfiguration

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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: Sized + 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: Sized + 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> 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<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