pub enum TopLevelSection {
Resources,
Parameters,
Outputs,
Mappings,
Metadata,
Rules,
Conditions,
Transform,
FormatVersion,
Description,
}Expand description
A top-level CloudFormation template section, as documented in the template anatomy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html).
This is the canonical, single definition of the section names - section constants in other crates derive from it.
Variants§
Resources
Parameters
Outputs
Mappings
Metadata
Rules
Conditions
Transform
FormatVersion
Description
Implementations§
Source§impl TopLevelSection
impl TopLevelSection
Sourcepub fn from_name(name: &str) -> Option<TopLevelSection>
pub fn from_name(name: &str) -> Option<TopLevelSection>
Parses a template key into its section - the inverse of Self::name.
Sourcepub const fn entity_type(self) -> EntityType
pub const fn entity_type(self) -> EntityType
The entity type of this section’s children.
Trait Implementations§
Source§impl Clone for TopLevelSection
impl Clone for TopLevelSection
Source§fn clone(&self) -> TopLevelSection
fn clone(&self) -> TopLevelSection
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 moreimpl Copy for TopLevelSection
Source§impl Debug for TopLevelSection
impl Debug for TopLevelSection
Source§impl<'de> Deserialize<'de> for TopLevelSection
impl<'de> Deserialize<'de> for TopLevelSection
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 TopLevelSection
Source§impl Hash for TopLevelSection
impl Hash for TopLevelSection
Source§impl PartialEq for TopLevelSection
impl PartialEq for TopLevelSection
Source§impl Serialize for TopLevelSection
impl Serialize for TopLevelSection
impl StructuralPartialEq for TopLevelSection
Auto Trait Implementations§
impl Freeze for TopLevelSection
impl RefUnwindSafe for TopLevelSection
impl Send for TopLevelSection
impl Sync for TopLevelSection
impl Unpin for TopLevelSection
impl UnsafeUnpin for TopLevelSection
impl UnwindSafe for TopLevelSection
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
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
Compare self to
key and return true if they are equal.