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
/x/space/wbi/acc/info 返回的公开用户空间信息。
Fields§
§mid: Mid用户 member ID。
name: String显示名称。
sex: Option<String>个人资料性别文本。
face: String头像 URL。
sign: String个人签名。
level: u8当前账号等级。
silence: u8Bilibili 返回的用户禁言或封禁状态。
coins: f64可见硬币数。查询其他用户时 Bilibili 返回 0。
fans_badge: bool该用户是否有粉丝勋章信息。
is_followed: bool当前会话是否关注该用户。
top_photo: Option<String>Bilibili 返回时的空间顶部图片 URL。
official: Option<UserOfficialSummary>官方认证摘要。
vip: Option<UserVipSummary>VIP 状态摘要。
live_room: Option<UserSpaceLiveRoom>直播间摘要。
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