pub struct SchedrVersion {
pub major: u32,
pub minor: u32,
}Expand description
A schedr version as major.minor; the patch level never changes compatibility.
Fields§
§major: u32The major version: data of another major version is never read.
minor: u32The minor version: a reader reads data of an equal or lower minor version.
Implementations§
Trait Implementations§
Source§impl Clone for SchedrVersion
impl Clone for SchedrVersion
Source§fn clone(&self) -> SchedrVersion
fn clone(&self) -> SchedrVersion
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 moreimpl Copy for SchedrVersion
Source§impl Debug for SchedrVersion
impl Debug for SchedrVersion
Source§impl<'de> Deserialize<'de> for SchedrVersion
impl<'de> Deserialize<'de> for SchedrVersion
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 SchedrVersion
impl Display for SchedrVersion
impl Eq for SchedrVersion
Source§impl From<SchedrVersion> for String
impl From<SchedrVersion> for String
Source§fn from(v: SchedrVersion) -> Self
fn from(v: SchedrVersion) -> Self
Converts to this type from the input type.
Source§impl FromStr for SchedrVersion
impl FromStr for SchedrVersion
Source§impl Hash for SchedrVersion
impl Hash for SchedrVersion
Source§impl JsonSchema for SchedrVersion
impl JsonSchema for SchedrVersion
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SchedrVersion
impl Ord for SchedrVersion
Source§fn cmp(&self, other: &SchedrVersion) -> Ordering
fn cmp(&self, other: &SchedrVersion) -> 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 SchedrVersion
impl PartialEq for SchedrVersion
Source§impl PartialOrd for SchedrVersion
impl PartialOrd for SchedrVersion
Source§impl Serialize for SchedrVersion
impl Serialize for SchedrVersion
impl StructuralPartialEq for SchedrVersion
Auto Trait Implementations§
impl Freeze for SchedrVersion
impl RefUnwindSafe for SchedrVersion
impl Send for SchedrVersion
impl Sync for SchedrVersion
impl Unpin for SchedrVersion
impl UnsafeUnpin for SchedrVersion
impl UnwindSafe for SchedrVersion
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