pub trait StaticProfileField {
type Value: Sized + Serialize + DeserializeOwned;
const NAME: &str;
}
Available on (crate features
client
or server
) and crate feature unstable-msc4133
only.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: Sized + Serialize + DeserializeOwned
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", so this trait is not object safe.