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.
Implementations§
Source§impl ResourceEntry
impl ResourceEntry
Sourcepub fn combined_dependencies(&self) -> Vec<ResourceRef>
pub fn combined_dependencies(&self) -> Vec<ResourceRef>
Returns intrinsic and stack-authored dependencies in planner order.
Sourcepub fn has_remote_bindings(&self) -> bool
pub fn has_remote_bindings(&self) -> bool
Returns whether this resource is published through Remote Bindings.
Provider emitters use this generic signal to create the stack-level Remote Bindings identity. Each resource emitter remains responsible for granting that identity only the resource’s declared data-plane access.
Sourcepub fn publishes_binding_params(&self) -> bool
pub fn publishes_binding_params(&self) -> bool
Whether the controller’s non-secret binding locator must be synchronized into stack state. The built-in secrets vault is consumed by the manager, but is not exposed through the external Remote Bindings API.
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.