pub struct Promotion { /* private fields */ }Expand description
Moves an environment to a revision: Control::promote.
Implementations§
Source§impl Promotion
impl Promotion
pub fn new(environment: impl Into<String>) -> Self
Sourcepub fn expect_current(self, revision_id: Option<String>) -> Self
pub fn expect_current(self, revision_id: Option<String>) -> Self
Promote only if the environment still runs revision_id (None: still runs nothing), so
two promotions racing from the same base cannot both win.
Sourcepub fn approve_destructive_changes(self) -> Self
pub fn approve_destructive_changes(self) -> Self
Allow a promotion whose schema change would drop data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Promotion
impl RefUnwindSafe for Promotion
impl Send for Promotion
impl Sync for Promotion
impl Unpin for Promotion
impl UnsafeUnpin for Promotion
impl UnwindSafe for Promotion
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