pub struct BugTrackers(/* private fields */);Expand description
A set of IBugTracker’s.
Each BugTracker is a distinct instance of a bug tracking tool. For example, bugzilla.mozilla.org is distinct from bugzilla.gnome.org.
Implementations§
Source§impl BugTrackers
impl BugTrackers
Sourcepub fn iter<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, BugTrackerPage>, Error>
pub fn iter<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, BugTrackerPage>, Error>
Get a paged collection of BugTrackerPage.
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
Sourcepub fn get_by_name<'a>(
&self,
client: &'a dyn Client,
name: &str,
) -> Result<BugTrackerFull, Error>
pub fn get_by_name<'a>( &self, client: &'a dyn Client, name: &str, ) -> Result<BugTrackerFull, Error>
Get a BugTracker by its name.
If no tracker with the given name exists, return default.
§Arguments
name: The bug tracker name
Sourcepub fn query_by_base_url<'a>(
&self,
client: &'a dyn Client,
base_url: &Url,
) -> Result<BugTrackerFull, Error>
pub fn query_by_base_url<'a>( &self, client: &'a dyn Client, base_url: &Url, ) -> Result<BugTrackerFull, Error>
Sourcepub fn ensure_bug_tracker<'a>(
&self,
client: &'a dyn Client,
base_url: &Url,
bug_tracker_type: Option<&BugTrackerType>,
title: Option<&str>,
summary: Option<&str>,
contact_details: Option<&str>,
name: Option<&str>,
) -> Result<Option<BugTracker>, Error>
pub fn ensure_bug_tracker<'a>( &self, client: &'a dyn Client, base_url: &Url, bug_tracker_type: Option<&BugTrackerType>, title: Option<&str>, summary: Option<&str>, contact_details: Option<&str>, name: Option<&str>, ) -> Result<Option<BugTracker>, Error>
Make sure that there is a bugtracker for the given base url.
If not, create one using the given attributes.
§Arguments
-
base_url: LocationThe top-level URL for the bug tracker, or an upstream email address. This must be accurate so that Launchpad can link to external bug reports.
-
bug_tracker_type: Bug Tracker Type -
title: TitleA descriptive label for this tracker to show in listings.
-
summary: SummaryA brief introduction or overview of this bug tracker instance.
-
contact_details: Contact detailsThe contact details for the external bug tracker (so that, for example, its administrators can be contacted about a security breach).
-
name: NameA URL-friendly name for the bug tracker, such as “mozilla-bugs”.