Struct fluvio_index::Package[][src]

pub struct Package {
    pub name: PackageName,
    pub group: GroupName,
    pub kind: PackageKind,
    pub author: Option<String>,
    pub description: Option<String>,
    pub repository: Option<String>,
    // some fields omitted
}

A Package represents a single published item in Fluvio’s registry.

Each time you publish an updated version of a package, that version is known as a Release.

A package has a specified type, and all releases of that package must be the same type.

Fields

name: PackageName

The unique name of this package

group: GroupName

The ID of the group that published the package

kind: PackageKind

The type of package this is

author: Option<String>

The author of this package

description: Option<String>

The human-readable description of this package

repository: Option<String>

A link to the source code repository of this package

Implementations

impl Package[src]

pub fn new_binary<S1, S2, S3, V>(
    id: &PackageId<V>,
    author: S1,
    desc: S2,
    repo: S3
) -> Self where
    S1: Into<String>,
    S2: Into<String>,
    S3: Into<String>, 
[src]

pub fn latest_release(&self) -> Result<&Release>[src]

Returns a reference to the latest release for this package

pub fn latest_release_for_target(
    &self,
    target: Target,
    prerelease: bool
) -> Result<&Release>
[src]

Returns a reference to the latest release with this target

If prerelease is false, this will return only the latest release whose version does not include a prerelease tag.

pub fn add_release(&mut self, version: Version, target: Target) -> Result<()>[src]

Adds a new release to this package. This will reject a release if a release by the same version exists.

pub fn releases_for_target(&self, target: Target) -> Vec<&Release>[src]

Trait Implementations

impl Debug for Package[src]

impl<'de> Deserialize<'de> for Package[src]

impl Serialize for Package[src]

Auto Trait Implementations

impl RefUnwindSafe for Package

impl Send for Package

impl Sync for Package

impl Unpin for Package

impl UnwindSafe for Package

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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