pub struct RepoInit { /* private fields */ }
Implementations§
Source§impl RepoInit
impl RepoInit
pub fn bare(&self) -> bool
pub fn set_bare(&mut self, enable: bool)
pub fn no_reinit(&self) -> bool
pub fn set_no_reinit(&mut self, enable: bool)
pub fn no_dotgit_dir(&self) -> bool
pub fn set_no_dotgit_dir(&mut self, enable: bool)
pub fn mkpath(&self) -> bool
pub fn set_mkpath(&mut self, enable: bool)
pub fn workdir_path(&self) -> &PathBuf
pub fn set_workdir_path<P>(&mut self, path: P)
pub fn description(&self) -> &str
pub fn set_description<D>(&mut self, desc: D)
pub fn initial_head(&self) -> &str
pub fn set_initial_head<H>(&mut self, head: H)
pub async fn init<T>(&self, target: T) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RepoInit
impl RefUnwindSafe for RepoInit
impl Send for RepoInit
impl Sync for RepoInit
impl Unpin for RepoInit
impl UnwindSafe for RepoInit
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