pub trait StaticProfileField {
type Value: Serialize + DeserializeOwned;
const NAME: &'static str;
}Expand description
Trait implemented by types representing a field in a user’s profile having a statically-known name.
Required Associated Constants§
Required Associated Types§
Sourcetype Value: Serialize + DeserializeOwned
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".
Implementors§
Source§impl StaticProfileField for AvatarUrl
impl StaticProfileField for AvatarUrl
Source§impl StaticProfileField for Call
Available on crate feature unstable-msc4426 only.
impl StaticProfileField for Call
Available on crate feature
unstable-msc4426 only.Source§impl StaticProfileField for DisplayName
impl StaticProfileField for DisplayName
Source§impl StaticProfileField for Status
Available on crate feature unstable-msc4426 only.
impl StaticProfileField for Status
Available on crate feature
unstable-msc4426 only.