Trait StaticProfileField

Source
pub trait StaticProfileField {
    type Value: Serialize + DeserializeOwned;

    const NAME: &'static str;
}
Available on crate feature api and (crate features client-api-c or client-api-s) only.
Expand description

Trait implemented by types representing a field in a user’s profile having a statically-known name.

Required Associated Constants§

Source

const NAME: &'static str

The string representation of this field.

Required Associated Types§

Source

type Value: Serialize + DeserializeOwned

The type for the value of the field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl StaticProfileField for AvatarUrl

Source§

const NAME: &'static str = "avatar_url"

Source§

type Value = OwnedMxcUri

Source§

impl StaticProfileField for DisplayName

Source§

const NAME: &'static str = "displayname"

Source§

type Value = String