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
}
Expand description
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
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
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>,
Returns a reference to the latest release for this package
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.
Adds a new release to this package. This will reject a release if a release by the same version exists.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Package
impl UnwindSafe for Package
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more