pub enum Command {
Path(String),
Text(String),
}
Expand description
Required. The source code for this script runnable.
Variants§
Path(String)
The path to a script file that is accessible from the host VM(s).
Unless the script file supports the default #!/bin/sh
shell
interpreter, you must specify an interpreter by including a
shebang line as the
first line of the file. For example, to execute the script using bash,
include #!/bin/bash
as the first line of the file. Alternatively,
to execute the script using Python3, include #!/usr/bin/env python3
as the first line of the file.
Text(String)
The text for a script.
Unless the script text supports the default #!/bin/sh
shell
interpreter, you must specify an interpreter by including a
shebang line at the
beginning of the text. For example, to execute the script using bash,
include #!/bin/bash\n
at the beginning of the text. Alternatively,
to execute the script using Python3, include #!/usr/bin/env python3\n
at the beginning of the text.
Implementations§
source§impl Command
impl Command
sourcepub fn merge(
field: &mut Option<Command>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Command>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for Command
impl PartialEq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request