pub enum Changes {
None,
Partial,
Version,
}Expand description
Represents the types of changes that can be made to an AIM structure.
This enum is used to determine what kind of save operation is needed. The change type affects how the workflow is persisted to disk.
§Change Types
None: No changes have been made, no save neededPartial: Incremental changes that can be saved as a partial updateVersion: Structural changes that require a new version
§Examples
use aimx::workflow::Changes;
let no_changes = Changes::None;
let partial_changes = Changes::Partial;
let version_changes = Changes::Version;
assert_ne!(no_changes, partial_changes);
assert_ne!(partial_changes, version_changes);Variants§
None
No changes have been made
Partial
Changes that only require a partial save
Version
Changes that require a full version change
Trait Implementations§
impl StructuralPartialEq for Changes
Auto Trait Implementations§
impl Freeze for Changes
impl RefUnwindSafe for Changes
impl Send for Changes
impl Sync for Changes
impl Unpin for Changes
impl UnwindSafe for Changes
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