amagi 0.1.3

Rust SDK, CLI, and Web API service skeleton for multi-platform social web adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::client::RequestConfig;

use super::BilibiliFetcher;

/// A Bilibili fetcher with cookie and request configuration already bound.
pub type BoundBilibiliFetcher = BilibiliFetcher;

/// Create a Bilibili fetcher with a pre-bound cookie and optional request overrides.
#[doc(alias = "createBoundBilibiliFetcher")]
pub fn create_bound_bilibili_fetcher(
    cookie: impl Into<String>,
    request: Option<RequestConfig>,
) -> BoundBilibiliFetcher {
    BilibiliFetcher::from_cookie(cookie, request.unwrap_or_default())
}