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 for RegistrationKind
impl PartialEq for RegistrationKind
source§impl Serialize for RegistrationKind
impl Serialize for RegistrationKind
impl Eq for RegistrationKind
impl StructuralPartialEq for RegistrationKind
Auto Trait Implementations§
impl Freeze for RegistrationKind
impl RefUnwindSafe for RegistrationKind
impl Send for RegistrationKind
impl Sync for RegistrationKind
impl Unpin for RegistrationKind
impl UnwindSafe for RegistrationKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.