Struct cup::repository::Repository
source · pub struct Repository {
pub config: Config,
pub path: PathBuf,
/* private fields */
}
Fields§
§config: Config
§path: PathBuf
Implementations§
source§impl Repository
impl Repository
sourcepub fn clone<P: AsRef<Path>>(url: &str, dest: P) -> Result<Self>
pub fn clone<P: AsRef<Path>>(url: &str, dest: P) -> Result<Self>
Possible Inputs
-
<username>/<repository>
-
git@<ssh>:<username>/<repository>
-
<protocol>://<website>/<username>/<repository>
pub fn init(name: &str, dest: &Dirs<'_>) -> Result<Self>
pub fn open<P: AsRef<Path> + Copy>(path: P) -> Result<Self>
pub fn delete(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Repository
impl Send for Repository
impl !Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
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