pub struct ChipzenConfig {
pub path: Option<PathBuf>,
pub token: Option<String>,
pub url: Option<String>,
pub bot_id: Option<String>,
}Expand description
Parsed contents of a chipzen.toml file.
Fields§
§path: Option<PathBuf>Filesystem path the config was loaded from. None for configs
constructed in-memory (e.g. in tests). Useful for error messages.
token: Option<String>Value of [external_api].token if present.
url: Option<String>Value of [external_api].url if present.
bot_id: Option<String>Value of [external_api].bot_id if present.
Trait Implementations§
Source§impl Clone for ChipzenConfig
impl Clone for ChipzenConfig
Source§fn clone(&self) -> ChipzenConfig
fn clone(&self) -> ChipzenConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChipzenConfig
impl Debug for ChipzenConfig
Source§impl Default for ChipzenConfig
impl Default for ChipzenConfig
Source§fn default() -> ChipzenConfig
fn default() -> ChipzenConfig
Returns the “default value” for a type. Read more
impl Eq for ChipzenConfig
Source§impl PartialEq for ChipzenConfig
impl PartialEq for ChipzenConfig
Source§fn eq(&self, other: &ChipzenConfig) -> bool
fn eq(&self, other: &ChipzenConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChipzenConfig
Auto Trait Implementations§
impl Freeze for ChipzenConfig
impl RefUnwindSafe for ChipzenConfig
impl Send for ChipzenConfig
impl Sync for ChipzenConfig
impl Unpin for ChipzenConfig
impl UnsafeUnpin for ChipzenConfig
impl UnwindSafe for ChipzenConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.