Skip to main content

CompatibilityExplain

Struct CompatibilityExplain 

Source
pub struct CompatibilityExplain {
    pub verdict: CompatibilityVerdict,
    pub added_fields: [&'static str; 16],
    pub added_count: u8,
    pub removed_fields: [&'static str; 16],
    pub removed_count: u8,
    pub changed_fields: [&'static str; 16],
    pub changed_count: u8,
    pub semantic_drift: bool,
    pub summary: &'static str,
}
Expand description

A structured, human-readable explanation of a compatibility verdict.

Goes beyond the raw verdict to tell operators why a transition is safe or dangerous, what segments are involved, and what action is needed.

Fields§

§verdict: CompatibilityVerdict

The computed verdict.

§added_fields: [&'static str; 16]

Fields that were added in the newer layout.

§added_count: u8

Number of valid entries in added_fields.

§removed_fields: [&'static str; 16]

Fields that were removed in the newer layout (breaking).

§removed_count: u8

Number of valid entries in removed_fields.

§changed_fields: [&'static str; 16]

Fields that were changed (type or size mismatch).

§changed_count: u8

Number of valid entries in changed_fields.

§semantic_drift: bool

Whether the semantic hash changed (meaning shifted even if wire is the same).

§summary: &'static str

One-line human-readable summary.

Implementations§

Source§

impl CompatibilityExplain

Source

pub fn between(older: &LayoutManifest, newer: &LayoutManifest) -> Self

Generate a full explanation from two layout manifests.

Trait Implementations§

Source§

impl Display for CompatibilityExplain

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.