pub struct CommandInvocation {
pub command: String,
pub shell: bool,
pub span_start: u32,
}Expand description
A literal command that a process-spawning call runs.
The extractor records the call only when the callee resolves to a known
process API (node:child_process, execa, zx, Bun) and the command is
a string literal or the static head of a template.
Fields§
§command: StringThe command text. For a program call this is the program name. For a shell call this is the static shell text up to the first expression.
shell: boolTrue when a shell parses command (exec, execSync, $ templates).
span_start: u32Start byte offset of the command literal.
Trait Implementations§
Source§impl Clone for CommandInvocation
impl Clone for CommandInvocation
Source§impl Debug for CommandInvocation
impl Debug for CommandInvocation
impl<'__de> Decode<'__de> for CommandInvocationwhere
'__de:,
impl Encode for CommandInvocation
impl Eq for CommandInvocation
Source§impl PartialEq for CommandInvocation
impl PartialEq for CommandInvocation
impl StructuralPartialEq for CommandInvocation
Auto Trait Implementations§
impl Freeze for CommandInvocation
impl RefUnwindSafe for CommandInvocation
impl Send for CommandInvocation
impl Sync for CommandInvocation
impl Unpin for CommandInvocation
impl UnsafeUnpin for CommandInvocation
impl UnwindSafe for CommandInvocation
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,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.