pub struct ReleaseCondition {
pub name: String,
pub comparator: ReleaseComparator,
pub value: Option<Release>,
}Expand description
A condition that compares the version of a release.
The field must hold a release, which compares against value as Release::compare
describes. If value names a package, the condition only matches releases of that package.
The condition does not match if the field has no version, such as a commit hash. A configured
release without a version deserializes to a value of None. Such a condition never matches
and is not supported, so that the author of the condition can
reject it.
Fields§
§name: StringPath of the field that holds the release.
comparator: ReleaseComparatorThe comparison to apply between the field and the value.
value: Option<Release>The release to compare the field against, such as 1.2.0 or myapp@1.2.0.
Implementations§
Trait Implementations§
Source§impl Clone for ReleaseCondition
impl Clone for ReleaseCondition
Source§fn clone(&self) -> ReleaseCondition
fn clone(&self) -> ReleaseCondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReleaseCondition
impl Debug for ReleaseCondition
Source§impl<'de> Deserialize<'de> for ReleaseCondition
impl<'de> Deserialize<'de> for ReleaseCondition
Source§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
Source§impl PartialEq for ReleaseCondition
impl PartialEq for ReleaseCondition
Source§impl Serialize for ReleaseCondition
impl Serialize for ReleaseCondition
impl StructuralPartialEq for ReleaseCondition
Auto Trait Implementations§
impl Freeze for ReleaseCondition
impl RefUnwindSafe for ReleaseCondition
impl Send for ReleaseCondition
impl Sync for ReleaseCondition
impl Unpin for ReleaseCondition
impl UnsafeUnpin for ReleaseCondition
impl UnwindSafe for ReleaseCondition
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