pub struct WorkflowVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
A semantic version for a workflow definition schema.
Fields§
§major: u32Major component — incompatible API changes.
minor: u32Minor component — backwards-compatible feature additions.
patch: u32Patch component — backwards-compatible bug fixes.
Implementations§
Source§impl WorkflowVersion
impl WorkflowVersion
Sourcepub fn parse(s: &str) -> Option<Self>
pub fn parse(s: &str) -> Option<Self>
Parse a "major.minor.patch" string.
Returns None if the string is malformed.
Sourcepub fn is_compatible_with(&self, other: &Self) -> bool
pub fn is_compatible_with(&self, other: &Self) -> bool
Returns true if other is compatible with self.
Compatibility requires the same major version and a minor ≥ own minor.
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Formatted string representation.
Trait Implementations§
Source§impl Clone for WorkflowVersion
impl Clone for WorkflowVersion
Source§fn clone(&self) -> WorkflowVersion
fn clone(&self) -> WorkflowVersion
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 WorkflowVersion
impl Debug for WorkflowVersion
Source§impl Display for WorkflowVersion
impl Display for WorkflowVersion
impl Eq for WorkflowVersion
Source§impl Hash for WorkflowVersion
impl Hash for WorkflowVersion
Source§impl Ord for WorkflowVersion
impl Ord for WorkflowVersion
Source§fn cmp(&self, other: &WorkflowVersion) -> Ordering
fn cmp(&self, other: &WorkflowVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WorkflowVersion
impl PartialEq for WorkflowVersion
Source§impl PartialOrd for WorkflowVersion
impl PartialOrd for WorkflowVersion
impl StructuralPartialEq for WorkflowVersion
Auto Trait Implementations§
impl Freeze for WorkflowVersion
impl RefUnwindSafe for WorkflowVersion
impl Send for WorkflowVersion
impl Sync for WorkflowVersion
impl Unpin for WorkflowVersion
impl UnsafeUnpin for WorkflowVersion
impl UnwindSafe for WorkflowVersion
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.