AbstractSource

Trait AbstractSource 

Source
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§

Source

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

Get the name of the source package.

Source

fn ensure_build_dep(&mut self, dep: Entry)

Ensure that a build dependency is present.

Source

fn set_maintainer(&mut self, maintainer: &str)

Set the maintainer of the source package.

Source

fn set_uploaders(&mut self, uploaders: &[&str])

Set the uploaders of the source package.

Source

fn set_vcs_url(&mut self, vcs_type: &str, url: &str)

Set the VCS URL for the source package.

Source

fn get_vcs_url(&self, vcs_type: &str) -> Option<String>

Get the VCS URL for the source package.

Implementations on Foreign Types§

Source§

impl AbstractSource<'_> for Source

Source§

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

Source§

fn ensure_build_dep(&mut self, dep: Entry)

Source§

fn set_maintainer(&mut self, maintainer: &str)

Source§

fn set_uploaders(&mut self, uploaders: &[&str])

Source§

fn set_vcs_url(&mut self, vcs_type: &str, url: &str)

Source§

fn get_vcs_url(&self, vcs_type: &str) -> Option<String>

Implementors§