pub struct CommandContext<S> {
pub source: Arc<S>,
pub input: String,
pub arguments: HashMap<String, ParsedArgument>,
pub command: Command<S>,
pub root_node: Arc<RwLock<CommandNode<S>>>,
pub nodes: Vec<ParsedCommandNode<S>>,
pub range: StringRange,
pub child: Option<Rc<CommandContext<S>>>,
pub modifier: Option<Arc<RedirectModifier<S>>>,
pub forks: bool,
}
Expand description
A built CommandContextBuilder
.
Fields§
§source: Arc<S>
§input: String
§arguments: HashMap<String, ParsedArgument>
§command: Command<S>
§root_node: Arc<RwLock<CommandNode<S>>>
§nodes: Vec<ParsedCommandNode<S>>
§range: StringRange
§child: Option<Rc<CommandContext<S>>>
§modifier: Option<Arc<RedirectModifier<S>>>
§forks: bool
Implementations§
Trait Implementations§
Source§impl<S> Clone for CommandContext<S>
impl<S> Clone for CommandContext<S>
Auto Trait Implementations§
impl<S> Freeze for CommandContext<S>
impl<S> !RefUnwindSafe for CommandContext<S>
impl<S> !Send for CommandContext<S>
impl<S> !Sync for CommandContext<S>
impl<S> Unpin for CommandContext<S>
impl<S> !UnwindSafe for CommandContext<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)