pub struct CleanupSpec {
pub command: Option<String>,
}Expand description
How a resource tears its concrete instance down. Ownership decides whether the hook may run at all; this decides what running it means.
Fields§
§command: Option<String>May use {{state_ref}} (from the instance’s latest checkpoint) and
{{exports.<name>}} (from the binding).
Trait Implementations§
Source§impl Clone for CleanupSpec
impl Clone for CleanupSpec
Source§fn clone(&self) -> CleanupSpec
fn clone(&self) -> CleanupSpec
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 CleanupSpec
impl Debug for CleanupSpec
Source§impl<'de> Deserialize<'de> for CleanupSpec
impl<'de> Deserialize<'de> for CleanupSpec
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 CleanupSpec
Source§impl PartialEq for CleanupSpec
impl PartialEq for CleanupSpec
impl StructuralPartialEq for CleanupSpec
Auto Trait Implementations§
impl Freeze for CleanupSpec
impl RefUnwindSafe for CleanupSpec
impl Send for CleanupSpec
impl Sync for CleanupSpec
impl Unpin for CleanupSpec
impl UnsafeUnpin for CleanupSpec
impl UnwindSafe for CleanupSpec
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