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§
source§impl Clone for RegistrationKind
impl Clone for RegistrationKind
source§fn clone(&self) -> RegistrationKind
fn clone(&self) -> RegistrationKind
Returns a copy 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 RegistrationKind
impl Debug for RegistrationKind
source§impl Default for RegistrationKind
impl Default for RegistrationKind
source§fn default() -> RegistrationKind
fn default() -> RegistrationKind
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RegistrationKind
impl<'de> Deserialize<'de> for RegistrationKind
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<RegistrationKind> for RegistrationKind
impl PartialEq<RegistrationKind> for RegistrationKind
source§fn eq(&self, other: &RegistrationKind) -> bool
fn eq(&self, other: &RegistrationKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl 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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.