pub struct ClientOptions {
pub session_id: Option<String>,
pub puzzle_dir: Option<PathBuf>,
pub encryption_token: Option<String>,
pub fake_time: Option<DateTime<Utc>>,
}Fields§
§session_id: Option<String>§puzzle_dir: Option<PathBuf>§encryption_token: Option<String>§fake_time: Option<DateTime<Utc>>Implementations§
Source§impl ClientOptions
impl ClientOptions
pub fn new() -> Self
pub fn with_config_file<P: AsRef<Path>>(self, path: P) -> Self
pub fn with_local_dir_config(self) -> Self
pub fn with_user_config(self) -> Self
pub fn with_env_vars(self) -> Self
pub fn with_json_config(self, json_config: &str) -> Result<Self>
pub fn with_session_id<S: Into<String>>(self, session_id: S) -> Self
pub fn with_puzzle_dir<P: Into<PathBuf>>(self, puzzle_dir: P) -> Self
pub fn with_encryption_token<S: Into<String>>(self, encryption_token: S) -> Self
pub fn with_fake_time(self, fake_time: DateTime<Utc>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientOptions
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnwindSafe for ClientOptions
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