Packageset

Struct Packageset 

Source
pub struct Packageset(/* private fields */);
Expand description

An interface for package sets.

Implementations§

Source§

impl Packageset

Source

pub fn get<'a>(&self, client: &'a dyn Client) -> Result<PackagesetFull, Error>

Source

pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>

Source

pub fn put<'a>( &self, client: &'a dyn Client, representation: &PackagesetFull, ) -> Result<(), Error>

Source

pub fn patch<'a>( &self, client: &'a dyn Client, representation: &PackagesetDiff, ) -> Result<(), Error>

Source

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
Source

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
Source

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
Source

pub fn get_sources_shared_by<'a>( &self, client: &'a dyn Client, other_package_set: &Packageset, direct_inclusion: Option<&str>, ) -> Result<(), Error>

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
Source

pub fn get_sources_not_shared_by<'a>( &self, client: &'a dyn Client, other_package_set: &Packageset, direct_inclusion: Option<&str>, ) -> Result<(), Error>

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
Source

pub fn related_sets<'a>( &self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PackagesetPage>, Error>

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
Source

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

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

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

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.

Trait Implementations§

Source§

impl Resource for Packageset

Source§

fn url(&self) -> &Url

The URL of the resource

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more