pub struct Client { /* private fields */ }
Expand description
Yandex Direct API client Stores the token and API URL
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(token: &str, api_url: &str) -> Self
pub fn new(token: &str, api_url: &str) -> Self
Creates a new Yandex Direct API client
let client = Client::new("token", "api_url");
API version 4 should be used The API URL is https://api.direct.yandex.ru/v4/json/. If your token is for the API sandbox you should use https://api-sandbox.direct.yandex.ru/v4/json/ as the URL.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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