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: Option<Type>,
pos: Pos,
span: Span,
},
Maintainer {
expr: Expr,
pos: Pos,
span: Span,
},
Choice(ChoiceDecl),
InterfaceInstance(InterfaceInstanceDecl),
Other {
raw: String,
pos: Pos,
span: Span,
},
}Variants§
Signatory
Observer
Ensure
Key
Fields
Maintainer
Choice(ChoiceDecl)
InterfaceInstance(InterfaceInstanceDecl)
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 moreAuto 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