pub struct RestoreSpec {
pub mode: RestoreMode,
pub command: Option<String>,
pub action: Option<String>,
}Expand description
How a resource re-establishes checkpointed state during undo.
Fields§
§mode: RestoreMode§command: Option<String>command: may use {{state_ref}}.
action: Option<String>recompute: the action to re-run (default prepare).
Implementations§
Source§impl RestoreSpec
impl RestoreSpec
Sourcepub fn recompute_action(&self) -> &str
pub fn recompute_action(&self) -> &str
The action a recompute restore re-runs.
Trait Implementations§
Source§impl Clone for RestoreSpec
impl Clone for RestoreSpec
Source§fn clone(&self) -> RestoreSpec
fn clone(&self) -> RestoreSpec
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 moreSource§impl Debug for RestoreSpec
impl Debug for RestoreSpec
Source§impl<'de> Deserialize<'de> for RestoreSpec
impl<'de> Deserialize<'de> for RestoreSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RestoreSpec
Source§impl PartialEq for RestoreSpec
impl PartialEq for RestoreSpec
impl StructuralPartialEq for RestoreSpec
Auto Trait Implementations§
impl Freeze for RestoreSpec
impl RefUnwindSafe for RestoreSpec
impl Send for RestoreSpec
impl Sync for RestoreSpec
impl Unpin for RestoreSpec
impl UnsafeUnpin for RestoreSpec
impl UnwindSafe for RestoreSpec
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