pub enum CommandBodyCapture {
Text,
Json,
}Expand description
What a runs command body’s result is, and therefore what the action’s
declared return type has to be.
Two forms, not three: a declared command’s caller is asking for the
command’s OUTPUT, and the outcome record that a bare run "…" body yields
is the shape the string form has for historical reasons. An action that
wants an exit code takes it from a run body.
Variants§
Text
Trimmed stdout becomes a JSON string. A non-zero exit is a retryable failure carrying stderr.
Json
Trimmed stdout is parsed as JSON and becomes the result. A non-zero exit is a retryable failure carrying stderr; stdout that is not valid JSON is a terminal one.
Trait Implementations§
Source§impl Clone for CommandBodyCapture
impl Clone for CommandBodyCapture
Source§fn clone(&self) -> CommandBodyCapture
fn clone(&self) -> CommandBodyCapture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandBodyCapture
Source§impl Debug for CommandBodyCapture
impl Debug for CommandBodyCapture
Source§impl<'de> Deserialize<'de> for CommandBodyCapture
impl<'de> Deserialize<'de> for CommandBodyCapture
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
impl Eq for CommandBodyCapture
Source§impl PartialEq for CommandBodyCapture
impl PartialEq for CommandBodyCapture
Source§impl Serialize for CommandBodyCapture
impl Serialize for CommandBodyCapture
impl StructuralPartialEq for CommandBodyCapture
Auto Trait Implementations§
impl Freeze for CommandBodyCapture
impl RefUnwindSafe for CommandBodyCapture
impl Send for CommandBodyCapture
impl Sync for CommandBodyCapture
impl Unpin for CommandBodyCapture
impl UnsafeUnpin for CommandBodyCapture
impl UnwindSafe for CommandBodyCapture
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.