Enum FrameworkChange
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. Written with a
history entry (crate::HistoryOp::Migrate), not 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 room 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§
§impl FrameworkChange
impl FrameworkChange
pub fn change_message(self) -> String
pub fn change_message(self) -> String
The commit message naming this change.
pub fn from_change_message(message: &str) -> Option<FrameworkChange>
pub fn from_change_message(message: &str) -> Option<FrameworkChange>
The framework change a commit message names, if it names one.
Trait Implementations§
§impl Clone for FrameworkChange
impl Clone for FrameworkChange
§fn clone(&self) -> FrameworkChange
fn clone(&self) -> FrameworkChange
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for FrameworkChange
impl Debug for FrameworkChange
§impl<'de> Deserialize<'de> for FrameworkChange
impl<'de> Deserialize<'de> for FrameworkChange
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameworkChange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameworkChange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Hash for FrameworkChange
impl Hash for FrameworkChange
§impl PartialEq for FrameworkChange
impl PartialEq for FrameworkChange
§impl Serialize for FrameworkChange
impl Serialize for FrameworkChange
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for FrameworkChange
impl Eq for FrameworkChange
impl StructuralPartialEq for FrameworkChange
Auto Trait Implementations§
impl Freeze 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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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