pub struct OutputEnvelopeHelper;Expand description
Stable helpers for mounted-app envelopes and payload shapes.
Implementations§
Source§impl OutputEnvelopeHelper
impl OutputEnvelopeHelper
pub fn success( command: CommandPath, data: Value, timestamp: &str, ) -> Result<OutputEnvelopeV1, String>
pub fn failure( command: CommandPath, error: ErrorPayloadV1, timestamp: &str, ) -> Result<ErrorEnvelopeV1, String>
pub fn json(value: Value) -> Value
pub fn text(message: impl Into<String>) -> Value
pub fn table(columns: &[&str], rows: &[Vec<Value>]) -> Result<Value, String>
pub fn quiet() -> Value
Auto Trait Implementations§
impl Freeze for OutputEnvelopeHelper
impl RefUnwindSafe for OutputEnvelopeHelper
impl Send for OutputEnvelopeHelper
impl Sync for OutputEnvelopeHelper
impl Unpin for OutputEnvelopeHelper
impl UnsafeUnpin for OutputEnvelopeHelper
impl UnwindSafe for OutputEnvelopeHelper
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