pub struct ApiClient {
pub reqwest_client: Client,
pub csrf: String,
pub bearer_token: String,
pub cookie: String,
pub user_agent: UserAgent,
pub transaction_id: String,
pub search_timeline_endpoint: String,
}Fields§
§reqwest_client: Client§csrf: String§bearer_token: String§user_agent: UserAgent§transaction_id: String§search_timeline_endpoint: StringImplementations§
Source§impl ApiClient
impl ApiClient
pub fn new( search_timeline_endpoint: &str, csrf: &str, bearer_token: &str, cookie: &str, transaction_id: &str, ) -> Result<Self>
pub fn update_search_timeline_endpoint( &mut self, search_timeline_endpoint: &str, )
pub async fn search_timeline( &self, count: u32, raw_query: &str, cursor: Option<String>, search_mode: &Product, ) -> Result<SearchTimeLineResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiClient
impl !RefUnwindSafe for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl UnsafeUnpin for ApiClient
impl !UnwindSafe for ApiClient
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