pub struct Payload {
pub args: Vec<OsString>,
pub eval: Option<String>,
pub script: Option<PathBuf>,
pub stdin: Option<String>,
}Expand description
Payload preserved for loaded-lib behavior.
Fields§
§args: Vec<OsString>Trailing positional arguments handed to the loaded entrypoint.
eval: Option<String>Eval text carried from --eval.
script: Option<PathBuf>Script path carried from --script.
stdin: Option<String>Stdin text carried from --stdin.
Trait Implementations§
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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