Struct proto_pdk_api::ExecCommandOutput
source · pub struct ExecCommandOutput {
pub command: String,
pub exit_code: i32,
pub stderr: String,
pub stdout: String,
}
Expand description
Output returned from the exec_command
host function.
Fields§
§command: String
§exit_code: i32
§stderr: String
§stdout: String
Implementations§
source§impl ExecCommandOutput
impl ExecCommandOutput
pub fn get_output(&self) -> String
Trait Implementations§
source§impl Clone for ExecCommandOutput
impl Clone for ExecCommandOutput
source§fn clone(&self) -> ExecCommandOutput
fn clone(&self) -> ExecCommandOutput
Returns a copy of the value. Read more
1.0.0 · 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 ExecCommandOutput
impl Debug for ExecCommandOutput
source§impl Default for ExecCommandOutput
impl Default for ExecCommandOutput
source§fn default() -> ExecCommandOutput
fn default() -> ExecCommandOutput
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExecCommandOutputwhere
ExecCommandOutput: Default,
impl<'de> Deserialize<'de> for ExecCommandOutputwhere
ExecCommandOutput: Default,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecCommandOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ExecCommandOutput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ExecCommandOutput
impl PartialEq for ExecCommandOutput
source§fn eq(&self, other: &ExecCommandOutput) -> bool
fn eq(&self, other: &ExecCommandOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecCommandOutput
impl Serialize for ExecCommandOutput
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExecCommandOutput
Auto Trait Implementations§
impl Freeze for ExecCommandOutput
impl RefUnwindSafe for ExecCommandOutput
impl Send for ExecCommandOutput
impl Sync for ExecCommandOutput
impl Unpin for ExecCommandOutput
impl UnwindSafe for ExecCommandOutput
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