Trait Project

Source
pub trait Project {
    // Required methods
    fn name(&self) -> String;
    fn namespace(&self) -> Option<String>;
    fn ssh_url(&self) -> String;
    fn http_url(&self) -> String;
    fn private(&self) -> bool;

    // Provided method
    fn into_repo_config(
        self,
        provider_name: &str,
        worktree_setup: bool,
        force_ssh: bool,
    ) -> Repo
       where Self: Sized { ... }
}

Required Methods§

Source

fn name(&self) -> String

Source

fn namespace(&self) -> Option<String>

Source

fn ssh_url(&self) -> String

Source

fn http_url(&self) -> String

Source

fn private(&self) -> bool

Provided Methods§

Source

fn into_repo_config( self, provider_name: &str, worktree_setup: bool, force_ssh: bool, ) -> Repo
where Self: Sized,

Implementors§