pub struct Packageset(/* private fields */);Expand description
An interface for package sets.
Implementations§
Source§impl Packageset
impl Packageset
pub fn get<'a>(&self, client: &'a dyn Client) -> Result<PackagesetFull, Error>
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &PackagesetFull, ) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &PackagesetDiff, ) -> Result<(), Error>
Sourcepub fn sets_included_by<'a>(
&self,
client: &'a dyn Client,
direct_inclusion: Option<&str>,
) -> Result<PagedCollection<'a, PackagesetPage>, Error>
pub fn sets_included_by<'a>( &self, client: &'a dyn Client, direct_inclusion: Option<&str>, ) -> Result<PagedCollection<'a, PackagesetPage>, Error>
Get all package sets that include this one.
Return all package sets that directly or indirectly include this one.
§Arguments
direct_inclusion
Sourcepub fn sets_included<'a>(
&self,
client: &'a dyn Client,
direct_inclusion: Option<&str>,
) -> Result<PagedCollection<'a, PackagesetPage>, Error>
pub fn sets_included<'a>( &self, client: &'a dyn Client, direct_inclusion: Option<&str>, ) -> Result<PagedCollection<'a, PackagesetPage>, Error>
Get all package sets that are included by this one.
Return all package sets that are directly or indirectly included by this one.
§Arguments
direct_inclusion
Sourcepub fn get_sources_included<'a>(
&self,
client: &'a dyn Client,
direct_inclusion: Option<&str>,
) -> Result<(), Error>
pub fn get_sources_included<'a>( &self, client: &'a dyn Client, direct_inclusion: Option<&str>, ) -> Result<(), Error>
Get all source names associated with this package set.
This method returns the source package names that are directly or indirectly associated with the package set at hand. Indirect associations may be defined through package set successors.
Please note: this method was mainly introduced in order to facilitate the listing of source package names via the LP web services API. It returns string names as opposed to ISourcePackageName instances.
§Arguments
direct_inclusion
Get source package names also included by another package set.
What source package names does this package set have in common with the other_package_set?
Please note: this method was mainly introduced in order to facilitate the listing of source package names via the LP web services API. It returns string names as opposed to ISourcePackageName instances.
§Arguments
other_package_set: The package set we are comparing to.direct_inclusion
Get source package names not included by another package set.
Which source package names included by this package are notincluded by the other_package_set?
Please note: this method was mainly introduced in order to facilitate the listing of source package names via the LP web services API. It returns string names as opposed to ISourcePackageName instances.
§Arguments
other_package_set: The package set we are comparing to.direct_inclusion
Get all other package sets in this set’s PackagesetGroup.
Returns all package sets that are related to this one, but not this one itself.
§Arguments
Sourcepub fn add_sources<'a>(
&self,
client: &'a dyn Client,
names: &str,
) -> Result<(), Error>
pub fn add_sources<'a>( &self, client: &'a dyn Client, names: &str, ) -> Result<(), Error>
Add the named source packages to this package set.
Any passed source package names will become directly associated with the package set at hand.
This function is idempotent in the sense that source package names that are already directly associated with a package set will be ignored.
This method facilitates the addition of source package names to package sets via the LP web services API. It takes string names as opposed to ISourcePackageName instances. Non-existing source package names will be ignored.
§Arguments
names: A list of source package names.
Sourcepub fn remove_sources<'a>(
&self,
client: &'a dyn Client,
names: &str,
) -> Result<(), Error>
pub fn remove_sources<'a>( &self, client: &'a dyn Client, names: &str, ) -> Result<(), Error>
Remove the named source packages from this package set.
Only source package names directly included by this package set can be removed. Any others will be ignored.
This method facilitates the removal of source package names from package sets via the LP web services API. It takes string names as opposed to ISourcePackageName instances.
§Arguments
names: A list of source package names.
Sourcepub fn add_subsets<'a>(
&self,
client: &'a dyn Client,
names: &str,
) -> Result<(), Error>
pub fn add_subsets<'a>( &self, client: &'a dyn Client, names: &str, ) -> Result<(), Error>
Add the named package sets as subsets to this package set.
Any passed source package names will become directly associated with the package set at hand.
This function is idempotent in the sense that package subsets that are already directly associated with a package set will be ignored.
This method facilitates the addition of package subsets via the LP web services API. It takes string names as opposed to IPackageset instances.
§Arguments
names: A list of package set names.
Sourcepub fn remove_subsets<'a>(
&self,
client: &'a dyn Client,
names: &str,
) -> Result<(), Error>
pub fn remove_subsets<'a>( &self, client: &'a dyn Client, names: &str, ) -> Result<(), Error>
Remove the named package subsets from this package set.
Only package subsets directly included by this package set can be removed. Any others will be ignored.
This method facilitates the removal of package subsets via the LP web services API. It takes string names as opposed to IPackageset instances.
§Arguments
names: A list of package set names.