pub struct Config {
pub terminal_key: String,
pub password: String,
pub base: String,
pub user_agent: Option<String>,
pub timeout_ms: u64,
pub max_retries: usize,
pub initial_backoff_ms: u64,
pub idempotence_header: Option<String>,
}Fields§
§terminal_key: String§password: String§base: Stringe.g. “https://securepay.tinkoff.ru”
user_agent: Option<String>§timeout_ms: u64default request timeout (ms)
max_retries: usizeretries
initial_backoff_ms: u64§idempotence_header: Option<String>заголовок для идемпотентности
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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