pub struct BiliClient { /* private fields */ }Implementations§
Source§impl BiliClient
impl BiliClient
pub fn new(config: ClientConfig) -> Self
pub async fn resolve_input( &self, raw: &str, selection: Option<Selection>, ) -> Result<ResolvedContent>
pub async fn resolve( &self, input: Input, selection: Option<Selection>, ) -> Result<ResolvedContent>
pub async fn plan_download( &self, raw: &str, selection: Option<Selection>, ) -> Result<DownloadPlan>
pub async fn plan( &self, input: Input, selection: Option<Selection>, ) -> Result<DownloadPlan>
Source§impl BiliClient
impl BiliClient
pub async fn download_input( &self, raw: &str, selection: Option<Selection>, options: DownloadOptions, ) -> Result<DownloadReport>
pub async fn download( &self, input: Input, selection: Option<Selection>, options: DownloadOptions, ) -> Result<DownloadReport>
pub async fn download_plan( &self, plan: &DownloadPlan, options: DownloadOptions, ) -> Result<DownloadReport>
pub async fn download_plan_with_archive_decision( &self, plan: &DownloadPlan, options: DownloadOptions, archive: &mut DownloadArchive, decision: DuplicateDecision, ) -> Result<DownloadReport>
pub async fn download_plan_with_archive_preflight_decision( &self, plan: &DownloadPlan, options: DownloadOptions, archive: &mut DownloadArchive, preflight: &DownloadPreflight, decision: DuplicateDecision, ) -> Result<DownloadReport>
Source§impl BiliClient
impl BiliClient
pub async fn create_web_qr_login(&self) -> Result<QrLoginTicket>
pub async fn poll_web_qr_login(&self, qrcode_key: &str) -> Result<QrLoginState>
pub async fn create_tv_qr_login(&self) -> Result<QrLoginTicket>
pub async fn poll_tv_qr_login( &self, ticket: &QrLoginTicket, ) -> Result<QrLoginState>
Trait Implementations§
Source§impl Clone for BiliClient
impl Clone for BiliClient
Source§fn clone(&self) -> BiliClient
fn clone(&self) -> BiliClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BiliClient
impl !UnwindSafe for BiliClient
impl Freeze for BiliClient
impl Send for BiliClient
impl Sync for BiliClient
impl Unpin for BiliClient
impl UnsafeUnpin for BiliClient
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