pub struct Settings {Show 17 fields
pub session: Set<String>,
pub cache: Set<PathBuf>,
pub key_dir: Set<PathBuf>,
pub json: Set<bool>,
pub nocache: Set<bool>,
pub offline: Set<bool>,
pub allow_private: Set<bool>,
pub accept_md: Set<bool>,
pub telemetry: Set<Level>,
pub telemetry_debug: Set<bool>,
pub country: Set<String>,
pub chunk: Set<usize>,
pub account_ttl: Set<u64>,
pub bd_zone: Option<Set<String>>,
pub limits: HashMap<&'static str, Set<Value>>,
pub saved: Saved,
pub rejects: Vec<String>,
}Fields§
§session: Set<String>§cache: Set<PathBuf>§key_dir: Set<PathBuf>§json: Set<bool>§nocache: Set<bool>§offline: Set<bool>No network calls: URLs come from the cache only (FATS_OFFLINE=1; the test suite runs this way).
allow_private: Set<bool>Fetch loopback, private and link-local addresses too (FATS_ALLOW_PRIVATE=1); off, a URL that is or
resolves to one is refused at every hop (a prompt-injected http://169.254.169.254/ reads nothing).
accept_md: Set<bool>Plain asks for Markdown first (provider::MD_ACCEPT; FATS_ACCEPT_MD=0: Safari’s own Accept). On by default.
telemetry: Set<Level>What telemetry sends (telemetry::Level): off under a CI marker (telemetry.json ci_env), DO_NOT_TRACK or
FATS_OFFLINE, whatever is set; else FATS_TELEMETRY, then settings.json (fats setup telemetry <level>),
then full.
telemetry_debug: Set<bool>FATS_TELEMETRY_DEBUG=1: every payload printed on stderr, nothing sent.
country: Set<String>The exit country of a paid call that names none (provider::exit): FATS_COUNTRY, else us, the
country of the Accept-Language plain sends (en-US,en;q=0.9, wreq-util’s Safari profile header.rs).
chunk: Set<usize>Heading-less text is cut into blocks of this many tokens (default 300).
account_ttl: Set<u64>Minutes a fats account read stands in for a new one (FATS_ACCOUNT_TTL, default 15; 0 = always read).
bd_zone: Option<Set<String>>Bright Data Web Unlocker zone (the BD CLI’s BRIGHTDATA_UNLOCKER_ZONE, else settings.json bd_zone
that fats setup writes); no default, zones are per account.
limits: HashMap<&'static str, Set<Value>>Thresholds set outside limits.json (env FATS_<NAME>, settings.json), checked against its kinds (limit_of).
saved: Savedsettings.json as read at start (set, the zone; the off switches are read at each call: on).
rejects: Vec<String>One ! bad_setting … row per refused value.
Auto Trait Implementations§
impl Forget for Settings
impl Freeze 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.