pub enum RegistrationKind {
Guest,
User,
}
Available on (crate features
client-api-c
or client-api-s
) and (crate features client
or server
) and crate feature api
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 · sourcefn clone_from(&mut self, source: &Self)
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
sourcefn default() -> RegistrationKind
fn default() -> RegistrationKind
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RegistrationKind
impl<'de> Deserialize<'de> for RegistrationKind
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<RegistrationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RegistrationKind, <__D as Deserializer<'de>>::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
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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.