#[non_exhaustive]pub enum TemplateBodyDecl {
Signatory {
parties: Vec<Expr>,
pos: Pos,
span: Span,
},
Observer {
parties: Vec<Expr>,
pos: Pos,
span: Span,
},
Ensure {
expr: Expr,
pos: Pos,
span: Span,
},
Key {
expr: Expr,
ty: TypeAnnotation,
pos: Pos,
span: Span,
},
Maintainer {
expr: Expr,
pos: Pos,
span: Span,
},
Choice(ChoiceDecl),
InterfaceInstance(InterfaceInstanceDecl),
Other {
raw: String,
pos: Pos,
span: Span,
},
}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.
Signatory
signatory clause with source-ordered party expressions.
Fields
Observer
observer clause with source-ordered party expressions.
Fields
Ensure
ensure clause.
Fields
Key
Template key declaration.
Fields
§
ty: TypeAnnotationStructured key type parse state.
Maintainer
maintainer clause.
Fields
Choice(ChoiceDecl)
choice declaration.
InterfaceInstance(InterfaceInstanceDecl)
interface instance declaration nested in a template.
Other
agreement, let blocks, deprecated controller ... can, etc.
Trait Implementations§
Source§impl Clone for TemplateBodyDecl
impl Clone for TemplateBodyDecl
Source§fn clone(&self) -> TemplateBodyDecl
fn clone(&self) -> TemplateBodyDecl
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 TemplateBodyDecl
impl Debug for TemplateBodyDecl
impl Eq for TemplateBodyDecl
Source§impl PartialEq for TemplateBodyDecl
impl PartialEq for TemplateBodyDecl
Source§fn eq(&self, other: &TemplateBodyDecl) -> bool
fn eq(&self, other: &TemplateBodyDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TemplateBodyDecl
Auto Trait Implementations§
impl Freeze for TemplateBodyDecl
impl RefUnwindSafe for TemplateBodyDecl
impl Send for TemplateBodyDecl
impl Sync for TemplateBodyDecl
impl Unpin for TemplateBodyDecl
impl UnsafeUnpin for TemplateBodyDecl
impl UnwindSafe for TemplateBodyDecl
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