pub struct UserSpaceProfile {Show 14 fields
pub mid: Mid,
pub name: String,
pub sex: Option<String>,
pub face: String,
pub sign: String,
pub level: u8,
pub silence: u8,
pub coins: f64,
pub fans_badge: bool,
pub is_followed: bool,
pub top_photo: Option<String>,
pub official: Option<UserOfficialSummary>,
pub vip: Option<UserVipSummary>,
pub live_room: Option<UserSpaceLiveRoom>,
}Expand description
Public user space information returned by /x/space/wbi/acc/info.
Fields§
§mid: MidUser member ID.
name: StringDisplay name.
sex: Option<String>Profile gender text.
face: StringAvatar URL.
sign: StringProfile signature.
level: u8Current account level.
silence: u8User silence/ban state returned by Bilibili.
coins: f64Visible coin count. Bilibili returns 0 for other users.
fans_badge: boolWhether this user has fan-medal information.
is_followed: boolWhether the current session follows this user.
top_photo: Option<String>Space top photo URL when Bilibili returns one.
official: Option<UserOfficialSummary>Official verification summary.
vip: Option<UserVipSummary>VIP status summary.
live_room: Option<UserSpaceLiveRoom>Live-room summary.
Trait Implementations§
Source§impl Clone for UserSpaceProfile
impl Clone for UserSpaceProfile
Source§fn clone(&self) -> UserSpaceProfile
fn clone(&self) -> UserSpaceProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserSpaceProfile
impl Debug for UserSpaceProfile
Source§impl<'de> Deserialize<'de> for UserSpaceProfile
impl<'de> Deserialize<'de> for UserSpaceProfile
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 Freeze for UserSpaceProfile
impl RefUnwindSafe for UserSpaceProfile
impl Send for UserSpaceProfile
impl Sync for UserSpaceProfile
impl Unpin for UserSpaceProfile
impl UnsafeUnpin for UserSpaceProfile
impl UnwindSafe for UserSpaceProfile
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