Skip to main content

SourcePackagePublishingHistory

Struct SourcePackagePublishingHistory 

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

A source package publishing history record.

Implementations§

Source§

impl SourcePackagePublishingHistory

Source

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

Retrieve the resource.

§Returns

Returns SourcePackagePublishingHistoryFull on success, or an error if the request fails.

Source

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

Retrieve the WADL description for this resource.

This method fetches the WADL (Web Application Description Language) specification for the current resource, allowing for runtime API discovery.

§Returns

Returns the wadl::ast::Resource definition on success, or an error if the request fails.

Source

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

Update the resource.

Source

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

Partially update the resource.

Source

pub fn get_published_binaries<'a>( &self, client: &'a dyn Client, active_binaries_only: Option<&str>, ) -> Result<PagedCollection<'a, BinaryPackagePublishingHistoryPage>, Error>

Return all resulted IBinaryPackagePublishingHistory.

Follow the build record and return every binary publishing record for any DistroArchSeries in this DistroSeries and in the same IArchive and Pocket, ordered by architecture tag. If active_binaries_only is True (the default), then only return PUBLISHED or PENDING binary publishing records.

§Arguments
  • active_binaries_only: Only return active publications
§Returns

Returns crate::blocking::page::PagedCollection<'a, BinaryPackagePublishingHistoryPage> on success, or an error if the request fails.

Source

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

Return a list of IBuild objects in this publishing context.

The builds are ordered by DistroArchSeries.architecturetag.

§Arguments
§Returns

Returns crate::blocking::page::PagedCollection<'a, BuildPage> on success, or an error if the request fails.

Source

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

The .changes file URL for this source publication.

§Arguments
Source

pub fn source_file_urls<'a>( &self, client: &'a dyn Client, include_meta: Option<&bool>, ) -> Result<(), Error>

URLs for this source publication’s uploaded source files.

§Arguments
  • include_meta: Include Metadata
Source

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

URLs for this source publication’s binary files.

§Arguments
Source

pub fn package_diff_url<'a>( &self, client: &'a dyn Client, to_version: &str, ) -> Result<(), Error>

URL of the debdiff file between this and the supplied version.

§Arguments
  • to_version: To Version
Source

pub fn request_deletion<'a>( &self, client: &'a dyn Client, removal_comment: Option<&str>, ) -> Result<(), Error>

Delete this source and its binaries.

§Arguments
  • removal_comment: Removal comment

Trait Implementations§

Source§

impl Resource for SourcePackagePublishingHistory

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: Sized + 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: Sized + 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