pub struct ClientConfig {
pub base_url: Option<String>,
pub token: String,
pub api_version: Option<String>,
pub timeout_secs: Option<u64>,
pub user_agent: Option<String>,
}Expand description
Конфигурация клиента
Fields§
§base_url: Option<String>Базовый URL API (по умолчанию https://api.gitverse.ru)
token: StringТокен авторизации
api_version: Option<String>Версия API (по умолчанию “1”)
timeout_secs: Option<u64>Таймаут запроса в секундах
user_agent: Option<String>User-Agent заголовок
Trait Implementations§
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§fn default() -> ClientConfig
fn default() -> ClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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