pub struct TypeChange {
pub type_id: GtsTypeId,
pub state: TypeChangeState,
pub backward: String,
pub forward: String,
pub diagnostics: Vec<SchemaDiagnostic>,
pub traits_changed: Vec<TraitChange>,
pub rows: Option<u64>,
pub rows_rewritten: Option<u64>,
pub levels_not_evolvable_in_place: Vec<String>,
pub migration_required: bool,
pub admissible: bool,
}Expand description
The full verdict on one candidate: what the dry run reports and what a refusal explains itself with.
Fields§
§type_id: GtsTypeId§state: TypeChangeState§backward: Stringcompatible / incompatible / unknown; the direction ADR-0003
enforces.
forward: StringComputed and reported, never enforced — the same posture as the registry. It tells a producer whether an old reader still accepts new payloads.
diagnostics: Vec<SchemaDiagnostic>Evidence for the backward verdict.
traits_changed: Vec<TraitChange>§rows: Option<u64>Live rows of this type, when the operation needed to know.
rows_rewritten: Option<u64>Rows a migration changed (or would change, in a dry run).
levels_not_evolvable_in_place: Vec<String>Object levels of the candidate where a later definition will not be
able to add an optional property (ContentModel::is_evolvable_in_place).
Reported so “your next edit will be a major” is a warning today rather
than a surprise later.
migration_required: boolWhether this change needs more than the schemas to be admitted.
admissible: boolWhether the gear would admit it under the options of this request.
Trait Implementations§
Source§impl Clone for TypeChange
impl Clone for TypeChange
Source§impl Debug for TypeChange
impl Debug for TypeChange
impl Eq for TypeChange
Source§impl PartialEq for TypeChange
impl PartialEq for TypeChange
impl StructuralPartialEq for TypeChange
Auto Trait Implementations§
impl Freeze for TypeChange
impl RefUnwindSafe for TypeChange
impl Send for TypeChange
impl Sync for TypeChange
impl Unpin for TypeChange
impl UnsafeUnpin for TypeChange
impl UnwindSafe for TypeChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.