pub struct Settings {
pub funding_cents: i64,
pub mode: Mode,
pub idle_close: Duration,
pub show_traffic: bool,
pub account_key: Option<String>,
pub keep_cents: i64,
pub refill_cents: i64,
pub keep_passes: usize,
pub account_key_prefix: String,
}Fields§
§funding_cents: i64What each new session is funded with, in cents
mode: Mode§idle_close: DurationClose a session after this long without a request
show_traffic: bool§account_key: Option<String>The account’s API key, for keeping the wallet and passes topped up.
Never sent with a chat. If unset, the proxy learns it from the first
sk-obs1_ key a client sends.
keep_cents: i64Withdraw when the wallet holds less than this many cents…
refill_cents: i64…this much (one of the fixed withdrawal sizes)
keep_passes: usizeFetch passes when fewer than this many are left this month
account_key_prefix: StringClient keys starting with this are taken to be the account’s key
Trait Implementations§
Auto Trait Implementations§
impl Forget for Settings
impl Freeze for Settings
impl Move for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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