Skip to main content

StaticProfileField

Trait StaticProfileField 

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

    const NAME: &str;
}
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: &str

The string representation of this field.

Required Associated Types§

Source

type Value: Sized + 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".

Implementors§

Source§

impl StaticProfileField for AvatarUrl

Source§

const NAME: &str = "avatar_url"

Source§

type Value = OwnedMxcUri

Source§

impl StaticProfileField for Call

Available on crate feature unstable-msc4426 only.
Source§

const NAME: &str = "org.matrix.msc4426.call"

Source§

type Value = CallProfileField

Source§

impl StaticProfileField for DisplayName

Source§

const NAME: &str = "displayname"

Source§

type Value = String

Source§

impl StaticProfileField for Status

Available on crate feature unstable-msc4426 only.
Source§

const NAME: &str = "org.matrix.msc4426.status"

Source§

type Value = StatusProfileField

Source§

impl StaticProfileField for TimeZone

Source§

const NAME: &str = "m.tz"

Source§

type Value = String