pub struct RecordedRequest {
pub program: PathBuf,
pub arguments: Vec<String>,
pub stdin: Vec<u8>,
pub timeout: Duration,
}Expand description
One request as ScriptedRunner saw it.
The stdin bytes are held verbatim. That is the point: a security test
injects a canary, runs the adapter, and asserts the canary is in
RecordedRequest::stdin and in no argument, no rendered document, and no
file on disk.
Fields§
§program: PathBufThe program that would have been launched.
arguments: Vec<String>The literal argument vector.
stdin: Vec<u8>What would have been written to the child’s stdin.
timeout: DurationThe deadline it would have run under.
Implementations§
Source§impl RecordedRequest
impl RecordedRequest
Sourcepub fn command_line(&self) -> String
pub fn command_line(&self) -> String
The program and arguments joined by a single space, for a match rule.
Trait Implementations§
Source§impl Clone for RecordedRequest
impl Clone for RecordedRequest
Source§fn clone(&self) -> RecordedRequest
fn clone(&self) -> RecordedRequest
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 RecordedRequest
impl Debug for RecordedRequest
impl Eq for RecordedRequest
Source§impl PartialEq for RecordedRequest
impl PartialEq for RecordedRequest
impl StructuralPartialEq for RecordedRequest
Auto Trait Implementations§
impl Freeze for RecordedRequest
impl RefUnwindSafe for RecordedRequest
impl Send for RecordedRequest
impl Sync for RecordedRequest
impl Unpin for RecordedRequest
impl UnsafeUnpin for RecordedRequest
impl UnwindSafe for RecordedRequest
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