Enum ruma::api::federation::query::get_profile_information::v1::ProfileField
source · [−]#[non_exhaustive]
pub enum ProfileField {
DisplayName,
AvatarUrl,
// some variants omitted
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
Profile fields to specify in query.
This type can hold an arbitrary string. To build this with a custom value, convert it from a
string with ::from() / .into()
. To check for values that are not available as a
documented variant here, use its string representation, obtained through
.as_str()
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DisplayName
Display name of the user.
AvatarUrl
Avatar URL for the user’s avatar.
Implementations
sourceimpl ProfileField
impl ProfileField
Trait Implementations
sourceimpl AsRef<str> for ProfileField
impl AsRef<str> for ProfileField
sourceimpl Clone for ProfileField
impl Clone for ProfileField
sourcefn clone(&self) -> ProfileField
fn clone(&self) -> ProfileField
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 ProfileField
impl Debug for ProfileField
sourceimpl<'de> Deserialize<'de> for ProfileField
impl<'de> Deserialize<'de> for ProfileField
sourcefn deserialize<D>(
deserializer: D
) -> Result<ProfileField, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ProfileField, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ProfileField
impl Display for ProfileField
sourceimpl<T> From<T> for ProfileFieldwhere
T: AsRef<str> + Into<Box<str, Global>>,
impl<T> From<T> for ProfileFieldwhere
T: AsRef<str> + Into<Box<str, Global>>,
sourcefn from(s: T) -> ProfileField
fn from(s: T) -> ProfileField
Converts to this type from the input type.
sourceimpl PartialEq<ProfileField> for ProfileField
impl PartialEq<ProfileField> for ProfileField
sourcefn eq(&self, other: &ProfileField) -> bool
fn eq(&self, other: &ProfileField) -> bool
sourceimpl Serialize for ProfileField
impl Serialize for ProfileField
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 ProfileField
impl StructuralEq for ProfileField
impl StructuralPartialEq for ProfileField
Auto Trait Implementations
impl RefUnwindSafe for ProfileField
impl Send for ProfileField
impl Sync for ProfileField
impl Unpin for ProfileField
impl UnwindSafe for ProfileField
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.