pub struct AddonRelease {
pub version: String,
pub channel: Option<String>,
pub published_at: Option<String>,
pub prerelease: Option<bool>,
}Expand description
A catalog entry describing an available version of an Addon.
Fields§
§version: StringAddon release version string.
channel: Option<String>Optional release channel (for example, "release" or "snapshot").
published_at: Option<String>Optional publication timestamp string from the upstream source.
prerelease: Option<bool>Whether the upstream catalog marks this release as a prerelease.
Implementations§
Source§impl AddonRelease
impl AddonRelease
Sourcepub fn new(version: impl Into<String>) -> Self
pub fn new(version: impl Into<String>) -> Self
Creates a release entry for the given addon version.
Sourcepub fn with_channel(self, channel: Option<String>) -> Self
pub fn with_channel(self, channel: Option<String>) -> Self
Sets the release channel label.
Sourcepub fn with_published_at(self, published_at: Option<String>) -> Self
pub fn with_published_at(self, published_at: Option<String>) -> Self
Sets the publication timestamp string.
Sourcepub fn with_prerelease(self, prerelease: Option<bool>) -> Self
pub fn with_prerelease(self, prerelease: Option<bool>) -> Self
Sets whether this release is a prerelease.
Trait Implementations§
Source§impl Clone for AddonRelease
impl Clone for AddonRelease
Source§impl Debug for AddonRelease
impl Debug for AddonRelease
impl Eq for AddonRelease
Source§impl Hash for AddonRelease
impl Hash for AddonRelease
Source§impl PartialEq for AddonRelease
impl PartialEq for AddonRelease
impl StructuralPartialEq for AddonRelease
Auto Trait Implementations§
impl Forget for AddonRelease
impl Freeze for AddonRelease
impl Move for AddonRelease
impl RefUnwindSafe for AddonRelease
impl Send for AddonReleasewhere
RawVecInner: Send,
impl Sync for AddonReleasewhere
RawVecInner: Sync,
impl Unpin for AddonRelease
impl UnsafeUnpin for AddonRelease
impl UnwindSafe for AddonReleasewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.