pub struct SiteFeatures {
pub password_registration: bool,
pub password_registration_email_required: bool,
pub password_login: bool,
pub account_recovery: bool,
pub login_with_email_allowed: bool,
}Expand description
Site features information.
Fields§
§password_registration: boolWhether local password-based registration is enabled.
password_registration_email_required: boolWhether local password-based registration requires an email address.
password_login: boolWhether local password-based login is enabled.
account_recovery: boolWhether email-based account recovery is enabled.
login_with_email_allowed: boolWhether users can log in with their email address.
Trait Implementations§
Source§impl Clone for SiteFeatures
impl Clone for SiteFeatures
Source§fn clone(&self) -> SiteFeatures
fn clone(&self) -> SiteFeatures
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 SiteFeatures
impl Debug for SiteFeatures
Source§impl Object for SiteFeatures
impl Object for SiteFeatures
Source§fn get_value(self: &Arc<Self>, field: &Value) -> Option<Value>
fn get_value(self: &Arc<Self>, field: &Value) -> Option<Value>
Given a key, looks up the associated value.
Source§fn repr(self: &Arc<Self>) -> ObjectRepr
fn repr(self: &Arc<Self>) -> ObjectRepr
Indicates the natural representation of an object. Read more
Source§fn enumerator_len(self: &Arc<Self>) -> Option<usize>
fn enumerator_len(self: &Arc<Self>) -> Option<usize>
Returns the length of the enumerator. Read more
Source§fn is_true(self: &Arc<Self>) -> bool
fn is_true(self: &Arc<Self>) -> bool
Returns
true if this object is considered true for if conditions. Read moreSource§fn call(
self: &Arc<Self>,
state: &State<'_, '_>,
args: &[Value],
) -> Result<Value, Error>
fn call( self: &Arc<Self>, state: &State<'_, '_>, args: &[Value], ) -> Result<Value, Error>
The engine calls this to invoke the object itself. Read more
Source§fn call_method(
self: &Arc<Self>,
state: &State<'_, '_>,
method: &str,
args: &[Value],
) -> Result<Value, Error>
fn call_method( self: &Arc<Self>, state: &State<'_, '_>, method: &str, args: &[Value], ) -> Result<Value, Error>
The engine calls this to invoke a method on the object. Read more
Source§impl PartialEq for SiteFeatures
impl PartialEq for SiteFeatures
impl Copy for SiteFeatures
impl Eq for SiteFeatures
impl StructuralPartialEq for SiteFeatures
Auto Trait Implementations§
impl Freeze for SiteFeatures
impl RefUnwindSafe for SiteFeatures
impl Send for SiteFeatures
impl Sync for SiteFeatures
impl Unpin for SiteFeatures
impl UnwindSafe for SiteFeatures
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ObjectExt for T
impl<T> ObjectExt for T
Source§fn mapped_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new iterator enumeration that projects into the given object. Read more
Source§fn mapped_rev_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
fn mapped_rev_enumerator<F>(self: &Arc<Self>, maker: F) -> Enumerator
Creates a new reversible iterator enumeration that projects into the given object. Read more