pub struct PluginVersion {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
Semantic version for plugins.
Fields§
§major: u32§minor: u32§patch: u32Implementations§
Source§impl PluginVersion
impl PluginVersion
pub fn new(major: u32, minor: u32, patch: u32) -> Self
Sourcepub fn satisfies_min(&self, min: &PluginVersion) -> bool
pub fn satisfies_min(&self, min: &PluginVersion) -> bool
Check if this version satisfies a minimum version requirement.
Trait Implementations§
Source§impl Clone for PluginVersion
impl Clone for PluginVersion
Source§fn clone(&self) -> PluginVersion
fn clone(&self) -> PluginVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 PluginVersion
impl Debug for PluginVersion
Source§impl<'de> Deserialize<'de> for PluginVersion
impl<'de> Deserialize<'de> for PluginVersion
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 PluginVersion
impl Display for PluginVersion
Source§impl Ord for PluginVersion
impl Ord for PluginVersion
Source§fn cmp(&self, other: &PluginVersion) -> Ordering
fn cmp(&self, other: &PluginVersion) -> Ordering
1.21.0 · 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 PluginVersion
impl PartialEq for PluginVersion
Source§impl PartialOrd for PluginVersion
impl PartialOrd for PluginVersion
Source§impl Serialize for PluginVersion
impl Serialize for PluginVersion
impl Eq for PluginVersion
impl StructuralPartialEq for PluginVersion
Auto Trait Implementations§
impl Freeze for PluginVersion
impl RefUnwindSafe for PluginVersion
impl Send for PluginVersion
impl Sync for PluginVersion
impl Unpin for PluginVersion
impl UnsafeUnpin for PluginVersion
impl UnwindSafe for PluginVersion
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