Enum ruma_client_api::account::register::RegistrationKind
source · [−]pub enum RegistrationKind {
Guest,
User,
}
Available on crate features
client
or server
only.Expand description
The kind of account being registered.
Variants
Guest
A guest account
These accounts may have limited permissions and may not be supported by all servers.
User
A regular user account
Trait Implementations
sourceimpl Clone for RegistrationKind
impl Clone for RegistrationKind
sourcefn clone(&self) -> RegistrationKind
fn clone(&self) -> RegistrationKind
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RegistrationKind
impl Debug for RegistrationKind
sourceimpl Default for RegistrationKind
impl Default for RegistrationKind
sourceimpl<'de> Deserialize<'de> for RegistrationKind
impl<'de> Deserialize<'de> for RegistrationKind
sourcefn 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
sourceimpl PartialEq<RegistrationKind> for RegistrationKind
impl PartialEq<RegistrationKind> for RegistrationKind
sourcefn eq(&self, other: &RegistrationKind) -> bool
fn eq(&self, other: &RegistrationKind) -> bool
sourceimpl Serialize for RegistrationKind
impl Serialize for RegistrationKind
impl Eq for RegistrationKind
impl StructuralEq for RegistrationKind
impl StructuralPartialEq for RegistrationKind
Auto Trait Implementations
impl RefUnwindSafe for RegistrationKind
impl Send for RegistrationKind
impl Sync for RegistrationKind
impl Unpin for RegistrationKind
impl UnwindSafe for RegistrationKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.