pub struct ResourceEntry {
pub config: Resource,
pub lifecycle: ResourceLifecycle,
pub dependencies: Vec<ResourceRef>,
pub remote_access: bool,
pub enabled_when: Option<String>,
}Fields§
§config: ResourceResource configuration (can be any type of resource)
lifecycle: ResourceLifecycleLifecycle management configuration for this resource
dependencies: Vec<ResourceRef>Additional dependencies for this resource beyond those defined in the resource itself. The total dependencies are: resource.get_dependencies() + this list
remote_access: boolEnable remote bindings for this resource (BYOB use case).
When true, binding params are synced to StackState’s remote_binding_params.
Default: false (prevents sensitive data in synced state).
enabled_when: Option<String>Id of the boolean stack input that decides whether this resource is
created at all. None means always create it.
Set by .enabled(input) in the SDK. Setup emitters render the resource
conditionally on the matching template variable, so a deployer who says no
never gets the resource, its outputs, or anything derived from it.
Trait Implementations§
Source§impl Clone for ResourceEntry
impl Clone for ResourceEntry
Source§fn clone(&self) -> ResourceEntry
fn clone(&self) -> ResourceEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceEntry
impl Debug for ResourceEntry
Source§impl<'de> Deserialize<'de> for ResourceEntry
impl<'de> Deserialize<'de> for ResourceEntry
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>,
impl Eq for ResourceEntry
Source§impl PartialEq for ResourceEntry
impl PartialEq for ResourceEntry
Source§impl Serialize for ResourceEntry
impl Serialize for ResourceEntry
impl StructuralPartialEq for ResourceEntry
Auto Trait Implementations§
impl !RefUnwindSafe for ResourceEntry
impl !UnwindSafe for ResourceEntry
impl Freeze for ResourceEntry
impl Send for ResourceEntry
impl Sync for ResourceEntry
impl Unpin for ResourceEntry
impl UnsafeUnpin for ResourceEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.