pub struct SimpleAction {
pub name: String,
pub parameters: Vec<Parameter>,
}
Expand description
Action is a named sequence of steps that can be performed by an agent.
Fields§
§name: String
The name of the action.
parameters: Vec<Parameter>
The parameters of the action.
Implementations§
Source§impl SimpleAction
impl SimpleAction
Sourcepub fn parse(
input: TokenStream<'_>,
) -> IResult<TokenStream<'_>, Self, ParserError>
pub fn parse( input: TokenStream<'_>, ) -> IResult<TokenStream<'_>, Self, ParserError>
Parse an action from a token stream.
Trait Implementations§
Source§impl Clone for SimpleAction
impl Clone for SimpleAction
Source§fn clone(&self) -> SimpleAction
fn clone(&self) -> SimpleAction
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 SimpleAction
impl Debug for SimpleAction
Source§impl<'de> Deserialize<'de> for SimpleAction
impl<'de> Deserialize<'de> for SimpleAction
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 Display for SimpleAction
impl Display for SimpleAction
Source§impl Hash for SimpleAction
impl Hash for SimpleAction
Source§impl Ord for SimpleAction
impl Ord for SimpleAction
Source§fn cmp(&self, other: &SimpleAction) -> Ordering
fn cmp(&self, other: &SimpleAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SimpleAction
impl PartialEq for SimpleAction
Source§impl PartialOrd for SimpleAction
impl PartialOrd for SimpleAction
Source§impl Serialize for SimpleAction
impl Serialize for SimpleAction
impl Eq for SimpleAction
impl StructuralPartialEq for SimpleAction
Auto Trait Implementations§
impl Freeze for SimpleAction
impl RefUnwindSafe for SimpleAction
impl Send for SimpleAction
impl Sync for SimpleAction
impl Unpin for SimpleAction
impl UnwindSafe for SimpleAction
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