pub struct Config { /* private fields */ }Expand description
Configuration for creating a GopherAgent.
Implementations§
Source§impl Config
impl Config
Sourcepub fn server_config(&self) -> Option<&str>
pub fn server_config(&self) -> Option<&str>
Get the server config JSON (if set).
Sourcepub fn has_api_key(&self) -> bool
pub fn has_api_key(&self) -> bool
Check if an API key is configured.
Sourcepub fn has_server_config(&self) -> bool
pub fn has_server_config(&self) -> bool
Check if a server config is configured.
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 UnsafeUnpin 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