pub struct Config {
pub session_id: String,
pub puzzle_dir: PathBuf,
pub sessions_dir: PathBuf,
pub passphrase: String,
pub start_time: DateTime<Utc>,
}Expand description
Configuration for the Advent of Code client.
Created from ClientOptions and used internally by WebClient. All fields are public to allow
inspection and advanced use cases, but typically you should not modify these directly after
client creation.
Fields§
§session_id: StringYour Advent of Code session cookie (from the browser’s cookies).
puzzle_dir: PathBufDirectory where puzzle inputs and answers are stored.
sessions_dir: PathBufDirectory where per-session state (e.g., submission timeouts) is cached.
passphrase: StringPassphrase used to encrypt puzzle inputs on disk.
start_time: DateTime<Utc>Current time (usually UTC now, but can be overridden for testing).
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