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: StringImplementations§
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<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
impl Eq for ExecCommandOutput
impl StructuralEq for ExecCommandOutput
impl StructuralPartialEq for ExecCommandOutput
Auto Trait Implementations§
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