pub struct RewritePlan {
pub argv: Vec<String>,
pub stdin_payload: Option<SecretString>,
pub substitutions: Vec<Substitution>,
pub argv_visible: bool,
}Expand description
Outcome of rewrite_argv.
Fields§
§argv: Vec<String>Argv as it should be handed to the child. Aliases routed through stdin are gone; aliases routed through argv hold the plaintext value.
stdin_payload: Option<SecretString>When Some, the caller writes the contained
SecretString to the child’s stdin. Multiple
stdin-routed aliases are joined with \n; the trailing
newline lets gh auth login --with-token and friends
terminate the read cleanly.
substitutions: Vec<Substitution>Audit trail (one entry per alias seen).
argv_visible: booltrue when at least one alias was routed through argv —
callers who want to fail loud on argv exposure can check
this.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RewritePlan
impl RefUnwindSafe for RewritePlan
impl Send for RewritePlan
impl Sync for RewritePlan
impl Unpin for RewritePlan
impl UnsafeUnpin for RewritePlan
impl UnwindSafe for RewritePlan
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