pub struct Compatibility {
pub schema: String,
pub minimum_engine: CanonVersion,
pub must_pass_through: Vec<CanonVersion>,
}Expand description
What one release needs of its engine.
Fields§
§schema: StringAlways SCHEMA once parsed.
minimum_engine: CanonVersionThe lowest engine that can land this release.
must_pass_through: Vec<CanonVersion>Versions an upgrade may not skip.
Implementations§
Source§impl Compatibility
impl Compatibility
Sourcepub fn parse(bytes: &[u8]) -> Result<Self, CompatibilityError>
pub fn parse(bytes: &[u8]) -> Result<Self, CompatibilityError>
Read one declaration.
§Errors
CompatibilityError when the bytes do not parse or the schema is
one this engine does not read.
Trait Implementations§
Source§impl Clone for Compatibility
impl Clone for Compatibility
Source§fn clone(&self) -> Compatibility
fn clone(&self) -> Compatibility
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 Compatibility
impl Debug for Compatibility
Source§impl<'de> Deserialize<'de> for Compatibility
impl<'de> Deserialize<'de> for Compatibility
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
impl Eq for Compatibility
Source§impl PartialEq for Compatibility
impl PartialEq for Compatibility
Source§impl Serialize for Compatibility
impl Serialize for Compatibility
impl StructuralPartialEq for Compatibility
Auto Trait Implementations§
impl Freeze for Compatibility
impl RefUnwindSafe for Compatibility
impl Send for Compatibility
impl Sync for Compatibility
impl Unpin for Compatibility
impl UnsafeUnpin for Compatibility
impl UnwindSafe for Compatibility
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.