pub enum FrameworkChange {
Genesis,
Migrate,
Structure,
Transfer,
Upgrade,
Run,
Native,
}Expand description
A change the framework writes rather than an app’s action.
Variants§
Genesis
What a brand-new record starts with: its genesis and first content.
Migrate
A storage migration to the model’s current version. A record whose
model has a version to name writes the step as a history entry
(crate::HistoryOp::Migrate); one whose model has none names this
message.
Structure
An empty container or the initial text every member derives the same way, made the first time the record needs it.
Transfer
The record leaving its workspace for another, or arriving in one.
Upgrade
A newer package of the record’s app now decides its changes: the record’s identity names that package’s surface.
Run
A marker recording one instruction that changed several records as one run in the record’s history. It carries no content and is decided as a checkpoint.
Native
A window’s direct edit of the record that names no finer action (widget input outside a bound action). It is decided as an edit of the whole record.
Implementations§
Source§impl FrameworkChange
impl FrameworkChange
Sourcepub fn change_message(self) -> String
pub fn change_message(self) -> String
The commit message naming this change.
Trait Implementations§
Source§impl Clone for FrameworkChange
impl Clone for FrameworkChange
impl Copy for FrameworkChange
Source§impl Debug for FrameworkChange
impl Debug for FrameworkChange
Source§impl<'de> Deserialize<'de> for FrameworkChange
impl<'de> Deserialize<'de> for FrameworkChange
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>,
impl Eq for FrameworkChange
Source§impl Hash for FrameworkChange
impl Hash for FrameworkChange
Source§impl PartialEq for FrameworkChange
impl PartialEq for FrameworkChange
Source§impl Serialize for FrameworkChange
impl Serialize for FrameworkChange
impl StructuralPartialEq for FrameworkChange
Auto Trait Implementations§
impl Forget for FrameworkChange
impl Freeze for FrameworkChange
impl Move for FrameworkChange
impl RefUnwindSafe for FrameworkChange
impl Send for FrameworkChange
impl Sync for FrameworkChange
impl Unpin for FrameworkChange
impl UnsafeUnpin for FrameworkChange
impl UnwindSafe for FrameworkChange
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more