Struct libcnb_data::buildpack::BuildpackVersion
source · pub struct BuildpackVersion {
pub major: u64,
pub minor: u64,
pub patch: u64,
}Expand description
The Buildpack version.
This MUST be in the form <X>.<Y>.<Z> where X, Y, and Z are non-negative integers
and must not contain leading zeros.
Fields§
§major: u64§minor: u64§patch: u64Implementations§
Trait Implementations§
source§impl Debug for BuildpackVersion
impl Debug for BuildpackVersion
source§impl<'de> Deserialize<'de> for BuildpackVersion
impl<'de> Deserialize<'de> for BuildpackVersion
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 BuildpackVersion
impl Display for BuildpackVersion
source§impl PartialEq for BuildpackVersion
impl PartialEq for BuildpackVersion
source§fn eq(&self, other: &BuildpackVersion) -> bool
fn eq(&self, other: &BuildpackVersion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<String> for BuildpackVersion
impl TryFrom<String> for BuildpackVersion
impl Eq for BuildpackVersion
impl StructuralEq for BuildpackVersion
impl StructuralPartialEq for BuildpackVersion
Auto Trait Implementations§
impl RefUnwindSafe for BuildpackVersion
impl Send for BuildpackVersion
impl Sync for BuildpackVersion
impl Unpin for BuildpackVersion
impl UnwindSafe for BuildpackVersion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.