#[non_exhaustive]pub struct GenerateBlock {
pub label: Arc<str>,
pub path: Arc<Path>,
pub if_exists: Arc<str>,
pub contents: Arc<str>,
pub span: Span,
}Expand description
generate "label" { ... } block, captured verbatim. The parser does
not write the file; consumers can synthesize it if needed.
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.label: Arc<str>Label on the generate block (e.g. "backend").
path: Arc<Path>Target path that would be written (relative to the component dir).
if_exists: Arc<str>if_exists policy as declared (e.g. "overwrite_terragrunt").
contents: Arc<str>Verbatim contents.
span: SpanSpan of the generate keyword.
Implementations§
Source§impl GenerateBlock
impl GenerateBlock
Trait Implementations§
Source§impl Clone for GenerateBlock
impl Clone for GenerateBlock
Source§fn clone(&self) -> GenerateBlock
fn clone(&self) -> GenerateBlock
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 GenerateBlock
impl Debug for GenerateBlock
Source§impl<'de> Deserialize<'de> for GenerateBlock
impl<'de> Deserialize<'de> for GenerateBlock
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 GenerateBlock
impl PartialEq for GenerateBlock
Source§fn eq(&self, other: &GenerateBlock) -> bool
fn eq(&self, other: &GenerateBlock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GenerateBlock
impl Serialize for GenerateBlock
impl StructuralPartialEq for GenerateBlock
Auto Trait Implementations§
impl Freeze for GenerateBlock
impl RefUnwindSafe for GenerateBlock
impl Send for GenerateBlock
impl Sync for GenerateBlock
impl Unpin for GenerateBlock
impl UnsafeUnpin for GenerateBlock
impl UnwindSafe for GenerateBlock
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