pub struct Repo { /* private fields */ }Expand description
a zub repository
Implementations§
Source§impl Repo
impl Repo
Sourcepub fn config_mut(&mut self) -> &mut Config
pub fn config_mut(&mut self) -> &mut Config
mutable access to configuration
Sourcepub fn save_config(&self) -> Result<()>
pub fn save_config(&self) -> Result<()>
save configuration changes
Sourcepub fn config_path(&self) -> PathBuf
pub fn config_path(&self) -> PathBuf
path to config.toml
Sourcepub fn objects_path(&self) -> PathBuf
pub fn objects_path(&self) -> PathBuf
path to objects directory
Sourcepub fn blobs_path(&self) -> PathBuf
pub fn blobs_path(&self) -> PathBuf
path to blobs directory
Sourcepub fn trees_path(&self) -> PathBuf
pub fn trees_path(&self) -> PathBuf
path to trees directory
Sourcepub fn commits_path(&self) -> PathBuf
pub fn commits_path(&self) -> PathBuf
path to commits directory
path to tags directory
Auto Trait Implementations§
impl Freeze for Repo
impl RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl UnsafeUnpin for Repo
impl UnwindSafe for Repo
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