Enum doku::TypePrinterMode [−][src]
pub enum TypePrinterMode {
All,
SerializableOnly,
DeserializableOnly,
}Expand description
Defines the way #[serde(skip_serializing/deserializing)] are be
interpreted.
Abstract
Serde allows for some fields to be skipped during the serialization and/or deserialization phase.
Since Doku on its own doesn’t know how given type is going to be used (i.e. whether it’ll be serialized or deserialized), it cannot just take a guess - you have to explicitly tell the type printer what’s the case.
If you don’t know or don’t care, use TypePrinterMode::default() - this
will render both the serializable, and the deserializable fields.
Variants
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypePrinterModeimpl Send for TypePrinterModeimpl Sync for TypePrinterModeimpl Unpin for TypePrinterModeimpl UnwindSafe for TypePrinterModeBlanket Implementations
Mutably borrows from an owned value. Read more