pub struct ResourceState {
pub name: String,
pub definition_rev: String,
pub mode: String,
pub state_ref: Option<String>,
pub state_path: Option<Utf8PathBuf>,
pub was_running: bool,
pub resolved_ports: BTreeMap<String, u16>,
pub resolved_exports: BTreeMap<String, String>,
}Fields§
§name: String§definition_rev: String§mode: StringCheckpoint mode that produced state_ref: none|hash|command|external.
state_ref: Option<String>hash:<hex12>, tracker:<name>@<rev>, or an opaque command/external ref.
state_path: Option<Utf8PathBuf>Resolved filesystem path substituted for {{state_ref}} in restore
commands, when the ref points at deposited content.
was_running: boolA long-running action was alive at checkpoint time; undo restarts it.
resolved_ports: BTreeMap<String, u16>§resolved_exports: BTreeMap<String, String>Trait Implementations§
Source§impl Clone for ResourceState
impl Clone for ResourceState
Source§fn clone(&self) -> ResourceState
fn clone(&self) -> ResourceState
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 ResourceState
impl Debug for ResourceState
Source§impl<'de> Deserialize<'de> for ResourceState
impl<'de> Deserialize<'de> for ResourceState
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 ResourceState
Source§impl PartialEq for ResourceState
impl PartialEq for ResourceState
Source§impl Serialize for ResourceState
impl Serialize for ResourceState
impl StructuralPartialEq for ResourceState
Auto Trait Implementations§
impl Freeze for ResourceState
impl RefUnwindSafe for ResourceState
impl Send for ResourceState
impl Sync for ResourceState
impl Unpin for ResourceState
impl UnsafeUnpin for ResourceState
impl UnwindSafe for ResourceState
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