pub struct SnippetBlock {
pub name: String,
pub block: Block,
pub span: Span,
}Expand description
A reusable configuration snippet definition.
Snippets allow defining configuration fragments that can be included elsewhere (implementation-dependent).
§Example
snippet ssl_config {
ssl_certificate /etc/ssl/cert.pem
ssl_key /etc/ssl/key.pem
}Fields§
§name: StringThe name of this snippet.
block: BlockThe nested block of statements.
span: SpanThe source span of the snippet block.
Trait Implementations§
Source§impl Clone for SnippetBlock
impl Clone for SnippetBlock
Source§fn clone(&self) -> SnippetBlock
fn clone(&self) -> SnippetBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 SnippetBlock
impl Debug for SnippetBlock
Source§impl Display for SnippetBlock
impl Display for SnippetBlock
Source§impl PartialEq for SnippetBlock
impl PartialEq for SnippetBlock
impl StructuralPartialEq for SnippetBlock
Auto Trait Implementations§
impl Freeze for SnippetBlock
impl RefUnwindSafe for SnippetBlock
impl Send for SnippetBlock
impl Sync for SnippetBlock
impl Unpin for SnippetBlock
impl UnsafeUnpin for SnippetBlock
impl UnwindSafe for SnippetBlock
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