pub struct UserRef {
pub id: UserId,
pub display_name: String,
pub is_bot: bool,
}Expand description
Who wrote a message.
Fields§
§id: UserIdPlatform user id.
display_name: StringName to show and to address the user by.
is_bot: boolWhether the author is a bot (okbot ignores bots by default).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserRef
impl<'de> Deserialize<'de> for UserRef
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
impl Eq for UserRef
impl StructuralPartialEq for UserRef
Auto Trait Implementations§
impl Freeze for UserRef
impl RefUnwindSafe for UserRef
impl Send for UserRef
impl Sync for UserRef
impl Unpin for UserRef
impl UnsafeUnpin for UserRef
impl UnwindSafe for UserRef
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