RemoteProject

Trait RemoteProject 

Source
pub trait RemoteProject {
    // Required methods
    fn get_project_data(
        &self,
        id: Option<i64>,
        path: Option<&str>,
    ) -> Result<CmdInfo>;
    fn get_project_members(&self) -> Result<CmdInfo>;
    fn get_url(&self, option: BrowseOptions) -> String;
    fn list(&self, args: ProjectListBodyArgs) -> Result<Vec<Project>>;
    fn num_pages(&self, args: ProjectListBodyArgs) -> Result<Option<u32>>;
    fn num_resources(
        &self,
        args: ProjectListBodyArgs,
    ) -> Result<Option<NumberDeltaErr>>;
}

Required Methods§

Source

fn get_project_data( &self, id: Option<i64>, path: Option<&str>, ) -> Result<CmdInfo>

Get the project data from the remote API. Implementers will need to pass either an id or a path. The path should be in the format OWNER/PROJECT_NAME

Source

fn get_project_members(&self) -> Result<CmdInfo>

Source

fn get_url(&self, option: BrowseOptions) -> String

User requests to open a browser using the remote url. It can open the merge/pull requests, pipeline, issues, etc.

Source

fn list(&self, args: ProjectListBodyArgs) -> Result<Vec<Project>>

Source

fn num_pages(&self, args: ProjectListBodyArgs) -> Result<Option<u32>>

Source

fn num_resources( &self, args: ProjectListBodyArgs, ) -> Result<Option<NumberDeltaErr>>

Implementors§