pub struct ActionUsage {
pub name: String,
pub type_name: String,
pub accept: Option<PayloadClause>,
pub send: Option<PayloadClause>,
pub body: ActionUsageBody,
pub name_span: Option<Span>,
pub type_ref_span: Option<Span>,
}Expand description
Action usage: action name : type_name (accept param_name : param_type)? body.
Fields§
§name: String§type_name: String§accept: Option<PayloadClause>For action ... accept param : Type form.
send: Option<PayloadClause>For standalone send param : Type control-node statements.
body: ActionUsageBody§name_span: Option<Span>Span of the usage name (for semantic tokens).
type_ref_span: Option<Span>Span of the type reference after : (for semantic tokens).
Trait Implementations§
Source§impl Clone for ActionUsage
impl Clone for ActionUsage
Source§fn clone(&self) -> ActionUsage
fn clone(&self) -> ActionUsage
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 ActionUsage
impl Debug for ActionUsage
impl Eq for ActionUsage
Source§impl PartialEq for ActionUsage
impl PartialEq for ActionUsage
Source§fn eq(&self, other: &ActionUsage) -> bool
fn eq(&self, other: &ActionUsage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActionUsage
Auto Trait Implementations§
impl Freeze for ActionUsage
impl RefUnwindSafe for ActionUsage
impl Send for ActionUsage
impl Sync for ActionUsage
impl Unpin for ActionUsage
impl UnsafeUnpin for ActionUsage
impl UnwindSafe for ActionUsage
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