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 contact_secs: (u64, u64),
pub wait_secs: (u64, u64),
pub fund_now: bool,
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
contact_secs: (u64, u64)The account is asked at random times this many seconds apart (min, max)…
wait_secs: (u64, u64)…and, when a request waits for it, at a random moment this far away (never sooner).
fund_now: boolA request that needs money or a pass the wallet doesn’t hold gets it from the account at once (default; the two requests are then seconds apart, a hint that they go together). False: the request waits (503, Retry-After) for a random contact instead.
account_key_prefix: StringClient keys starting with this are taken to be the account’s key