pub struct ShelfConfig { /* private fields */ }
Implementations§
Source§impl ShelfConfig
impl ShelfConfig
pub fn get_path(self) -> PathBuf
pub fn dotconf_conf() -> Self
pub fn gitai_conf() -> PathBuf
pub fn load_config() -> Result<GitAIConfig>
pub fn save_config(config: &GitAIConfig) -> Result<()>
Trait Implementations§
Source§impl Clone for ShelfConfig
impl Clone for ShelfConfig
Source§fn clone(&self) -> ShelfConfig
fn clone(&self) -> ShelfConfig
Returns a copy of the value. Read more
1.0.0 · 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 ShelfConfig
impl Debug for ShelfConfig
Source§impl<'de> Deserialize<'de> for ShelfConfig
impl<'de> Deserialize<'de> for ShelfConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ShelfConfig
impl RefUnwindSafe for ShelfConfig
impl Send for ShelfConfig
impl Sync for ShelfConfig
impl Unpin for ShelfConfig
impl UnwindSafe for ShelfConfig
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