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§
Sourcefn get_project_data(
&self,
id: Option<i64>,
path: Option<&str>,
) -> Result<CmdInfo>
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
fn get_project_members(&self) -> Result<CmdInfo>
Sourcefn get_url(&self, option: BrowseOptions) -> String
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.