pub struct LoginNav {
pub is_login: bool,
pub mid: Option<Mid>,
pub uname: Option<String>,
pub face: Option<String>,
pub wbi_img: LoginWbiImg,
}Expand description
Login/navigation state returned by /x/web-interface/nav.
Fields§
§is_login: boolWhether the current session is logged in.
mid: Option<Mid>Logged-in user ID. Guest responses return 0, exposed as None.
uname: Option<String>Logged-in display name. Empty guest values are exposed as None.
face: Option<String>Logged-in avatar URL. Empty guest values are exposed as None.
wbi_img: LoginWbiImgWBI image keys. Bilibili returns these for guest sessions too.
Trait Implementations§
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.