pub enum Format {
Plain,
Text,
Json,
Jsonl,
Markdown,
}Expand description
Output format for rendering structured content.
Determines how Output is rendered to text. Can be customized via Ui::with_format().
§Examples
use scriba::Format;
let format = Format::Markdown;
assert_eq!(format.as_str(), "markdown");
assert!(format.is_human());Variants§
Plain
Plain scalar output (string, number, boolean, or null).
Text
Human-readable text with basic formatting.
Json
JSON object representation.
Jsonl
Newline-delimited JSON records.
Markdown
Markdown-formatted output.
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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