pub struct Client(/* private fields */);

Implementations§

source§

impl Client

source

pub fn query_package_metrics( &self, organization: impl Into<String>, body: impl Into<PackageMetricsQuery>, feed_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Arguments:

  • organization: The name of the Azure DevOps organization.
  • project: Project ID or project name
source

pub fn get_packages( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Get details about all of the packages in the feed. Use the various filters to include or exclude information from the result set.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

Arguments:

  • organization: The name of the Azure DevOps organization.
  • feed_id: Name or Id of the feed.
  • project: Project ID or project name
source

pub fn get_package( &self, organization: impl Into<String>, feed_id: impl Into<String>, package_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Get details about a specific package.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

Arguments:

  • organization: The name of the Azure DevOps organization.
  • feed_id: Name or Id of the feed.
  • package_id: The package Id (GUID Id, not the package name).
  • project: Project ID or project name
source

pub fn query_package_version_metrics( &self, organization: impl Into<String>, body: impl Into<PackageVersionMetricsQuery>, feed_id: impl Into<String>, package_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Arguments:

  • organization: The name of the Azure DevOps organization.
  • project: Project ID or project name
source

pub fn get_package_versions( &self, organization: impl Into<String>, feed_id: impl Into<String>, package_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Get a list of package versions, optionally filtering by state.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

Arguments:

  • organization: The name of the Azure DevOps organization.
  • feed_id: Name or Id of the feed.
  • package_id: Id of the package (GUID Id, not name).
  • project: Project ID or project name
source

pub fn get_package_version( &self, organization: impl Into<String>, feed_id: impl Into<String>, package_id: impl Into<String>, package_version_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Get details about a specific package version.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

Arguments:

  • organization: The name of the Azure DevOps organization.
  • feed_id: Name or Id of the feed.
  • package_id: Id of the package (GUID Id, not name).
  • package_version_id: Id of the package version (GUID Id, not name).
  • project: Project ID or project name
source

pub fn get_package_version_provenance( &self, organization: impl Into<String>, feed_id: impl Into<String>, package_id: impl Into<String>, package_version_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Gets provenance for a package version.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

Arguments:

  • organization: The name of the Azure DevOps organization.
  • feed_id: Name or Id of the feed.
  • package_id: Id of the package (GUID Id, not name).
  • package_version_id: Id of the package version (GUID Id, not name).
  • project: Project ID or project name
source

pub fn get_badge( &self, organization: impl Into<String>, feed_id: impl Into<String>, package_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder

Generate a SVG badge for the latest version of a package. The generated SVG is typically used as the image in an HTML link which takes users to the feed containing the package to accelerate discovery and consumption.

The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.

Arguments:

  • organization: The name of the Azure DevOps organization.
  • feed_id: Name or Id of the feed.
  • package_id: Id of the package (GUID Id, not name).
  • project: Project ID or project name

Auto Trait Implementations§

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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.

§

impl<T> Instrument for T

§

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

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

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 Twhere 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, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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