pub struct MigrationDirectives {
pub depends: Vec<String>,
pub env: Vec<String>,
pub require: Vec<String>,
pub ensure: Vec<String>,
pub safety_override: bool,
}Expand description
Parsed directives from a migration file header.
Fields§
§depends: Vec<String>Dependencies: -- waypoint:depends V3,V5 (V prefix is stripped)
env: Vec<String>Environment tags: -- waypoint:env dev,staging
require: Vec<String>Preconditions: -- waypoint:require table_exists("users")
ensure: Vec<String>Postconditions: -- waypoint:ensure column_exists("users", "email")
safety_override: boolSafety override: -- waypoint:safety-override bypasses DANGER blocks
Trait Implementations§
Source§impl Clone for MigrationDirectives
impl Clone for MigrationDirectives
Source§fn clone(&self) -> MigrationDirectives
fn clone(&self) -> MigrationDirectives
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationDirectives
impl Debug for MigrationDirectives
Source§impl Default for MigrationDirectives
impl Default for MigrationDirectives
Source§fn default() -> MigrationDirectives
fn default() -> MigrationDirectives
Returns the “default value” for a type. Read more
Source§impl PartialEq for MigrationDirectives
impl PartialEq for MigrationDirectives
impl Eq for MigrationDirectives
impl StructuralPartialEq for MigrationDirectives
Auto Trait Implementations§
impl Freeze for MigrationDirectives
impl RefUnwindSafe for MigrationDirectives
impl Send for MigrationDirectives
impl Sync for MigrationDirectives
impl Unpin for MigrationDirectives
impl UnsafeUnpin for MigrationDirectives
impl UnwindSafe for MigrationDirectives
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
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§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
Compare self to
key and return true if they are equal.