pub trait AbstractSource<'a> {
// Required methods
fn name(&self) -> Option<String>;
fn ensure_build_dep(&mut self, dep: Entry);
fn set_maintainer(&mut self, maintainer: &str);
fn set_uploaders(&mut self, uploaders: &[&str]);
fn set_vcs_url(&mut self, vcs_type: &str, url: &str);
fn get_vcs_url(&self, vcs_type: &str) -> Option<String>;
}Expand description
An abstract source package.
Required Methods§
Sourcefn ensure_build_dep(&mut self, dep: Entry)
fn ensure_build_dep(&mut self, dep: Entry)
Ensure that a build dependency is present.
Sourcefn set_maintainer(&mut self, maintainer: &str)
fn set_maintainer(&mut self, maintainer: &str)
Set the maintainer of the source package.
Sourcefn set_uploaders(&mut self, uploaders: &[&str])
fn set_uploaders(&mut self, uploaders: &[&str])
Set the uploaders of the source package.
Sourcefn set_vcs_url(&mut self, vcs_type: &str, url: &str)
fn set_vcs_url(&mut self, vcs_type: &str, url: &str)
Set the VCS URL for the source package.
Sourcefn get_vcs_url(&self, vcs_type: &str) -> Option<String>
fn get_vcs_url(&self, vcs_type: &str) -> Option<String>
Get the VCS URL for the source package.