pub struct ArtifactVersion {
pub major: u32,
pub minor: u32,
}Expand description
Semantic version of the artifact format.
Fields§
§major: u32Breaking changes — verifiers reject higher majors.
minor: u32Backward/forward compatible additions — unknown fields ignored.
Implementations§
Source§impl ArtifactVersion
impl ArtifactVersion
Sourcepub fn accepts(&self, other: &ArtifactVersion) -> bool
pub fn accepts(&self, other: &ArtifactVersion) -> bool
Whether a verifier supporting (self) can process other:
same or lower major, any minor.
Trait Implementations§
Source§impl Clone for ArtifactVersion
impl Clone for ArtifactVersion
Source§fn clone(&self) -> ArtifactVersion
fn clone(&self) -> ArtifactVersion
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 ArtifactVersion
impl Debug for ArtifactVersion
Source§impl<'de> Deserialize<'de> for ArtifactVersion
impl<'de> Deserialize<'de> for ArtifactVersion
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 Display for ArtifactVersion
impl Display for ArtifactVersion
impl Eq for ArtifactVersion
Source§impl PartialEq for ArtifactVersion
impl PartialEq for ArtifactVersion
Source§fn eq(&self, other: &ArtifactVersion) -> bool
fn eq(&self, other: &ArtifactVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ArtifactVersion
impl Serialize for ArtifactVersion
impl StructuralPartialEq for ArtifactVersion
Auto Trait Implementations§
impl Freeze for ArtifactVersion
impl RefUnwindSafe for ArtifactVersion
impl Send for ArtifactVersion
impl Sync for ArtifactVersion
impl Unpin for ArtifactVersion
impl UnsafeUnpin for ArtifactVersion
impl UnwindSafe for ArtifactVersion
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