pub struct Branches(/* private fields */);Expand description
Interface representing the set of branches.
Implementations§
Source§impl Branches
impl Branches
Sourcepub fn iter<'a>(
&'a self,
client: &'a dyn Client,
) -> Result<PagedCollection<'a, BranchPage>, Error>
pub fn iter<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, BranchPage>, Error>
Get a paged collection of BranchPage.
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
Sourcepub fn get_by_unique_name<'a>(
&self,
client: &'a dyn Client,
unique_name: &str,
) -> Result<BranchFull, Error>
pub fn get_by_unique_name<'a>( &self, client: &'a dyn Client, unique_name: &str, ) -> Result<BranchFull, Error>
Find a branch by its ~owner/product/name unique name.
Return None if no match was found.
§Arguments
unique_name: Branch unique name
Sourcepub fn get_by_url<'a>(
&self,
client: &'a dyn Client,
url: &Url,
) -> Result<BranchFull, Error>
pub fn get_by_url<'a>( &self, client: &'a dyn Client, url: &Url, ) -> Result<BranchFull, Error>
Find a branch by URL.
Either from the external specified in Branch.url, from the URL onhttp://bazaar.launchpad.net/ or the lp: URL.
This is a frontend shim to IBranchLookup.getByUrl to allow it to be exported over the API. If you want to call this from within the Launchpad app, use the IBranchLookup version instead.
Return None if no match was found.
§Arguments
url: Branch URL
Sourcepub fn get_by_urls<'a>(
&self,
client: &'a dyn Client,
urls: &str,
) -> Result<(), Error>
pub fn get_by_urls<'a>( &self, client: &'a dyn Client, urls: &str, ) -> Result<(), Error>
Finds branches by URL.
Either from the external specified in Branch.url, from the URL onhttp://bazaar.launchpad.net/, or from the lp: URL.
This is a frontend shim to IBranchLookup.getByUrls to allow it to be exported over the API. If you want to call this from within the Launchpad app, use the IBranchLookup version instead.
§Arguments
-
urls: A list of URLs of branchesThese can be URLs external to Launchpad, lp: URLs, or http://bazaar.launchpad.net/ URLs, or any mix of all these different kinds.