pub enum OperationMode {
DryRun,
Validation,
Sync,
Audit,
}Expand description
Operation mode for schema synchronization
Different modes allow the same engine to be used for different purposes:
- Dry-run: Preview changes without applying
- Validation: Check if schemas match (CI mode)
- Sync: Actually apply changes
- Audit: Read-only inspection
Variants§
DryRun
Dry-run mode: calculate and return diff without applying
Validation
Validation mode: check if schemas match, exit non-zero if not
Sync
Sync mode: apply changes to bring schemas in sync
Audit
Audit mode: read-only inspection, no changes allowed
Trait Implementations§
Source§impl Clone for OperationMode
impl Clone for OperationMode
Source§fn clone(&self) -> OperationMode
fn clone(&self) -> OperationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OperationMode
Source§impl Debug for OperationMode
impl Debug for OperationMode
impl Eq for OperationMode
Source§impl PartialEq for OperationMode
impl PartialEq for OperationMode
Source§fn eq(&self, other: &OperationMode) -> bool
fn eq(&self, other: &OperationMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationMode
Auto Trait Implementations§
impl Freeze for OperationMode
impl RefUnwindSafe for OperationMode
impl Send for OperationMode
impl Sync for OperationMode
impl Unpin for OperationMode
impl UnsafeUnpin for OperationMode
impl UnwindSafe for OperationMode
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