pub struct MiscClient<'a> { /* private fields */ }Expand description
Misc API client.
Implementations§
Source§impl<'a> MiscClient<'a>
impl<'a> MiscClient<'a>
Sourcepub async fn buvid3(&self) -> BpiResult<Buvid3Data>
pub async fn buvid3(&self) -> BpiResult<Buvid3Data>
Gets a web buvid3 value.
Sourcepub async fn b23_short_link(
&self,
params: MiscB23ShortLinkParams,
) -> BpiResult<ShortLinkData>
pub async fn b23_short_link( &self, params: MiscB23ShortLinkParams, ) -> BpiResult<ShortLinkData>
Generates a b23.tv short link.
Sourcepub async fn bili_ticket(&self) -> BpiResult<TicketData>
pub async fn bili_ticket(&self) -> BpiResult<TicketData>
Generates a bili_ticket payload.
Sourcepub async fn bili_ticket_string(&self) -> BpiResult<String>
pub async fn bili_ticket_string(&self) -> BpiResult<String>
Generates a bili_ticket and returns only the ticket string.
Trait Implementations§
Source§impl<'a> Clone for MiscClient<'a>
impl<'a> Clone for MiscClient<'a>
Source§fn clone(&self) -> MiscClient<'a>
fn clone(&self) -> MiscClient<'a>
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 moreimpl<'a> Copy for MiscClient<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MiscClient<'a>
impl<'a> !UnwindSafe for MiscClient<'a>
impl<'a> Freeze for MiscClient<'a>
impl<'a> Send for MiscClient<'a>
impl<'a> Sync for MiscClient<'a>
impl<'a> Unpin for MiscClient<'a>
impl<'a> UnsafeUnpin for MiscClient<'a>
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