pub struct App {
pub folder: &'static str,
pub env_prefix: &'static str,
}Fields§
§folder: &'static str§env_prefix: &'static strImplementations§
Source§impl App
impl App
pub fn folder(self) -> String
pub fn config_dir(self) -> PathBuf
pub fn data_dir(self) -> PathBuf
pub fn db_path(self, file: impl AsRef<Path>) -> PathBuf
pub fn token_path(self) -> PathBuf
pub fn mcp_token_path(self) -> PathBuf
pub fn crash_spool_dir(self) -> PathBuf
pub fn traces_dir(self) -> PathBuf
Trait Implementations§
impl Copy for App
impl Eq for App
impl StructuralPartialEq for App
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more