pub enum RenderedOutput {
Text(String),
Binary(Vec<u8>, String),
Silent,
}Expand description
Output from a command, used in post-output hooks.
This represents the final output from a command handler after rendering.
Variants§
Text(String)
Text output (rendered template or error message)
Binary(Vec<u8>, String)
Binary output with suggested filename
Silent
No output (silent command)
Implementations§
Trait Implementations§
Source§impl Clone for RenderedOutput
impl Clone for RenderedOutput
Source§fn clone(&self) -> RenderedOutput
fn clone(&self) -> RenderedOutput
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RenderedOutput
impl RefUnwindSafe for RenderedOutput
impl Send for RenderedOutput
impl Sync for RenderedOutput
impl Unpin for RenderedOutput
impl UnwindSafe for RenderedOutput
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