pub struct RoomUserProfileResponse {
pub display_name: String,
pub user_id: String,
pub picture_url: Option<String>,
}
Fields§
§display_name: String
User’s display name
user_id: String
User ID
picture_url: Option<String>
Profile image URL. https
image URL. Not included in the response if the user doesn’t have a profile image.
Implementations§
Source§impl RoomUserProfileResponse
impl RoomUserProfileResponse
pub fn new(display_name: String, user_id: String) -> RoomUserProfileResponse
Trait Implementations§
Source§impl Clone for RoomUserProfileResponse
impl Clone for RoomUserProfileResponse
Source§fn clone(&self) -> RoomUserProfileResponse
fn clone(&self) -> RoomUserProfileResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RoomUserProfileResponse
impl Debug for RoomUserProfileResponse
Source§impl Default for RoomUserProfileResponse
impl Default for RoomUserProfileResponse
Source§fn default() -> RoomUserProfileResponse
fn default() -> RoomUserProfileResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RoomUserProfileResponse
impl<'de> Deserialize<'de> for RoomUserProfileResponse
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
Source§impl PartialEq for RoomUserProfileResponse
impl PartialEq for RoomUserProfileResponse
Source§impl Serialize for RoomUserProfileResponse
impl Serialize for RoomUserProfileResponse
impl StructuralPartialEq for RoomUserProfileResponse
Auto Trait Implementations§
impl Freeze for RoomUserProfileResponse
impl RefUnwindSafe for RoomUserProfileResponse
impl Send for RoomUserProfileResponse
impl Sync for RoomUserProfileResponse
impl Unpin for RoomUserProfileResponse
impl UnwindSafe for RoomUserProfileResponse
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