pub struct Out(/* private fields */);Expand description
The stdout object of one command.
Implementations§
Source§impl Out
impl Out
pub fn new(command: &str, status: &str) -> Self
pub fn set<T: Serialize + ?Sized>(self, key: &str, value: &T) -> Self
Sourcepub fn raw(self, key: &str, bytes: Vec<u8>) -> Self
pub fn raw(self, key: &str, bytes: Vec<u8>) -> Self
Embed bytes that are already JSON (record canonical documents) without re-serializing them.
pub fn status(&self) -> &str
pub fn bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Out
impl RefUnwindSafe for Out
impl Send for Out
impl Sync for Out
impl Unpin for Out
impl UnsafeUnpin for Out
impl UnwindSafe for Out
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