#[non_exhaustive]pub struct ResourceRow {
pub id: ResourceId,
pub run: RunName,
pub key: String,
pub kind: ResourceKind,
pub scope: Scope,
pub copy_name: Option<CopyName>,
pub native_id: Option<String>,
pub state: ResourceState,
pub lifetime: Lifetime,
pub created_by: OperationId,
pub destroyed_by: Option<OperationId>,
pub detail: Option<Value>,
}Expand description
A resource the run made or keeps.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: ResourceIdIts id.
run: RunNameIts run.
key: StringThe manifest resource’s key, or the local thing’s.
kind: ResourceKindWhat it is.
scope: ScopeWhose it is.
copy_name: Option<CopyName>Its name on the host, for a provider resource: what a recovery finds a creating one by.
native_id: Option<String>The provider’s id for it (for a local one, its path); none while creating.
state: ResourceStateWhere it stands.
lifetime: LifetimeWhat its life is tied to.
created_by: OperationIdThe operation that made it.
destroyed_by: Option<OperationId>The operation that removes or removed it.
detail: Option<Value>What removing it needs besides its id.
Trait Implementations§
Source§impl Clone for ResourceRow
impl Clone for ResourceRow
Source§impl Debug for ResourceRow
impl Debug for ResourceRow
Source§impl<'de> Deserialize<'de> for ResourceRow
impl<'de> Deserialize<'de> for ResourceRow
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
Source§impl PartialEq for ResourceRow
impl PartialEq for ResourceRow
Source§impl Serialize for ResourceRow
impl Serialize for ResourceRow
impl StructuralPartialEq for ResourceRow
Auto Trait Implementations§
impl Forget for ResourceRow
impl Freeze for ResourceRowwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ResourceRow
impl RefUnwindSafe for ResourceRow
impl Send for ResourceRow
impl Sync for ResourceRow
impl Unpin for ResourceRow
impl UnsafeUnpin for ResourceRowwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ResourceRow
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