pub enum DumpMode {
Json,
Python,
}Expand description
Output mode for model_dump().
Variants§
Json
JSON-compatible types (strings, numbers, booleans, null)
Python
Rust native types (preserves Value variants)
Trait Implementations§
impl Copy for DumpMode
impl Eq for DumpMode
impl StructuralPartialEq for DumpMode
Auto Trait Implementations§
impl Freeze for DumpMode
impl RefUnwindSafe for DumpMode
impl Send for DumpMode
impl Sync for DumpMode
impl Unpin for DumpMode
impl UnwindSafe for DumpMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).