pub struct OpenImContact {
pub username: String,
pub nickname: Option<String>,
pub remark: Option<String>,
pub large_avatar_url: Option<String>,
pub small_avatar_url: Option<String>,
}Expand description
Supplied contact fields for one accepted OpenIM identity.
Fields§
§username: StringExact OpenIM username returned for the requested identity.
nickname: Option<String>Contact’s nickname, preserving absent and present-empty values.
remark: Option<String>Saved remark supplied by the service, when present.
large_avatar_url: Option<String>Server-advertised large-avatar source. Validate it before any download.
small_avatar_url: Option<String>Server-advertised small-avatar source. Validate it before any download.
Trait Implementations§
Source§impl Clone for OpenImContact
impl Clone for OpenImContact
Source§impl Debug for OpenImContact
impl Debug for OpenImContact
Source§impl<'de> Deserialize<'de> for OpenImContact
impl<'de> Deserialize<'de> for OpenImContact
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 OpenImContact
Source§impl PartialEq for OpenImContact
impl PartialEq for OpenImContact
Source§impl Serialize for OpenImContact
impl Serialize for OpenImContact
impl StructuralPartialEq for OpenImContact
Auto Trait Implementations§
impl Forget for OpenImContact
impl Freeze for OpenImContact
impl Move for OpenImContact
impl RefUnwindSafe for OpenImContact
impl Send for OpenImContact
impl Sync for OpenImContact
impl Unpin for OpenImContact
impl UnsafeUnpin for OpenImContact
impl UnwindSafe for OpenImContact
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