pub struct User(/* private fields */);Expand description
Remember user id and do GETs.
Implementations§
Source§impl User
impl User
Sourcepub async fn info(&self) -> Result<Value>
👎Deprecated: WBI is stateful protected. Replace it with card/live_info
pub async fn info(&self) -> Result<Value>
Sourcepub async fn latest_videos(&self) -> Result<Value>
pub async fn latest_videos(&self) -> Result<Value>
Sourcepub async fn recent_posts(&self) -> Result<Value>
pub async fn recent_posts(&self) -> Result<Value>
Sourcepub async fn live_info(&self) -> Result<Value>
pub async fn live_info(&self) -> Result<Value>
Invoke search_room if room id not found, otherwise query room info.
See also api_info/live:info/room_info
§Errors
Throw network errors or api errors.
Sourcepub async fn search_room(&self) -> Result<String>
pub async fn search_room(&self) -> Result<String>
Search room of user and filter check with room play info. See also api_info/unstable:room_search
§Errors
Mostly if live stream stopped. Otherwise network errors or api errors.
§Panics
Internal failures.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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