pub enum EnvelopeMode {
None,
Json,
}Expand description
Whether output is wrapped in a JSON envelope.
§Examples
use scriba::envelope::EnvelopeMode;
let mode = EnvelopeMode::Json;
assert!(mode.is_json());Variants§
None
No envelope — raw rendered output only (default).
Json
Wrap output in a JSON object with metadata fields.
Implementations§
Trait Implementations§
Source§impl Clone for EnvelopeMode
impl Clone for EnvelopeMode
Source§fn clone(&self) -> EnvelopeMode
fn clone(&self) -> EnvelopeMode
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 moreSource§impl Debug for EnvelopeMode
impl Debug for EnvelopeMode
Source§impl Default for EnvelopeMode
impl Default for EnvelopeMode
Source§fn default() -> EnvelopeMode
fn default() -> EnvelopeMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for EnvelopeMode
impl PartialEq for EnvelopeMode
impl Copy for EnvelopeMode
impl Eq for EnvelopeMode
impl StructuralPartialEq for EnvelopeMode
Auto Trait Implementations§
impl Freeze for EnvelopeMode
impl RefUnwindSafe for EnvelopeMode
impl Send for EnvelopeMode
impl Sync for EnvelopeMode
impl Unpin for EnvelopeMode
impl UnsafeUnpin for EnvelopeMode
impl UnwindSafe for EnvelopeMode
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