#[non_exhaustive]pub struct Hero {
pub user_id: OwnedUserId,
pub displayname: Option<String>,
pub avatar_url: Option<OwnedMxcUri>,
}Available on crate feature
unstable-msc4186 and (crate features client or server) only.Expand description
A room hero (see FullRoomData::heroes).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user_id: OwnedUserIdThe user ID.
displayname: Option<String>The display name from the membership event, if set.
avatar_url: Option<OwnedMxcUri>The avatar URL from the membership event, if set.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hero
impl<'de> Deserialize<'de> for Hero
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Hero
impl Freeze for Hero
impl Move for Hero
impl RefUnwindSafe for Hero
impl Send for Hero
impl Sync for Hero
impl Unpin for Hero
impl UnsafeUnpin for Hero
impl UnwindSafe for Hero
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more