#[non_exhaustive]pub enum ResourceExternal {
Boolean(Located<BooleanValue>),
NameMapping(Box<ExternalNameMapping>),
}Expand description
The authored lifecycle form for a top-level resource.
Compose historically allowed external: { name: ... }. It is deliberately
distinct from the modern sibling name field so callers can diagnose an
ambiguous document instead of silently selecting one spelling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Boolean(Located<BooleanValue>)
Modern boolean or deferred-expression syntax.
NameMapping(Box<ExternalNameMapping>)
Deprecated mapping syntax retaining its independently authored name.
Implementations§
Source§impl ResourceExternal
impl ResourceExternal
Sourcepub const fn boolean(&self) -> Option<&Located<BooleanValue>>
pub const fn boolean(&self) -> Option<&Located<BooleanValue>>
Returns the boolean/expression form when it was authored.
Sourcepub const fn name_mapping(&self) -> Option<&ExternalNameMapping>
pub const fn name_mapping(&self) -> Option<&ExternalNameMapping>
Returns the deprecated external-name mapping when it was authored.
Sourcepub fn is_explicitly_external(&self) -> bool
pub fn is_explicitly_external(&self) -> bool
Whether this form explicitly selects external lifecycle.
Trait Implementations§
Source§impl Clone for ResourceExternal
impl Clone for ResourceExternal
Source§fn clone(&self) -> ResourceExternal
fn clone(&self) -> ResourceExternal
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 ResourceExternal
impl Debug for ResourceExternal
impl Eq for ResourceExternal
Source§impl PartialEq for ResourceExternal
impl PartialEq for ResourceExternal
impl StructuralPartialEq for ResourceExternal
Auto Trait Implementations§
impl Freeze for ResourceExternal
impl RefUnwindSafe for ResourceExternal
impl Send for ResourceExternal
impl Sync for ResourceExternal
impl Unpin for ResourceExternal
impl UnsafeUnpin for ResourceExternal
impl UnwindSafe for ResourceExternal
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