pub struct UserBasic {
pub username: String,
pub name: String,
pub id: UserId,
pub state: UserState,
pub avatar_url: Option<String>,
pub web_url: String,
}
👎Deprecated since 0.1609.0: define deserialization types in client code
Expand description
Basic user information.
Fields§
§username: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The username.
name: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The display name.
id: UserId
👎Deprecated since 0.1609.0: define deserialization types in client code
The user’s ID.
state: UserState
👎Deprecated since 0.1609.0: define deserialization types in client code
The state of the user account.
avatar_url: Option<String>
👎Deprecated since 0.1609.0: define deserialization types in client code
The URL of the user’s avatar.
web_url: String
👎Deprecated since 0.1609.0: define deserialization types in client code
The URL of the user’s profile page.
Trait Implementations§
source§impl<'de> Deserialize<'de> for UserBasic
impl<'de> Deserialize<'de> for UserBasic
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 From<AccessRequester> for UserBasic
impl From<AccessRequester> for UserBasic
source§fn from(member: AccessRequester) -> Self
fn from(member: AccessRequester) -> Self
Converts to this type from the input type.
source§impl From<UserPublic> for UserBasic
impl From<UserPublic> for UserBasic
source§fn from(user: UserPublic) -> Self
fn from(user: UserPublic) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserBasic
impl RefUnwindSafe for UserBasic
impl Send for UserBasic
impl Sync for UserBasic
impl Unpin for UserBasic
impl UnwindSafe for UserBasic
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