pub struct ParsedCommand {
pub verb: String,
pub target: Option<String>,
pub flags: HashMap<String, String>,
}
Expand description
Represents a parsed command with its components.
Fields§
§verb: String
The main verb of the command (e.g., “cast”).
target: Option<String>
The optional target of the command (e.g., “fireball”).
flags: HashMap<String, String>
A map of flag key-value pairs (e.g., –power=high).
Trait Implementations§
Source§impl Debug for ParsedCommand
impl Debug for ParsedCommand
Source§impl PartialEq for ParsedCommand
impl PartialEq for ParsedCommand
impl StructuralPartialEq for ParsedCommand
Auto Trait Implementations§
impl Freeze for ParsedCommand
impl RefUnwindSafe for ParsedCommand
impl Send for ParsedCommand
impl Sync for ParsedCommand
impl Unpin for ParsedCommand
impl UnwindSafe for ParsedCommand
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