Enum doku::Visibility [−][src]
pub enum Visibility {
All,
SerializableOnly,
DeserializableOnly,
}
Expand description
Defines the way skip_serializing/skip_deserializing are 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 Visibility::default()
- this will
render both the serializable and the deserializable fields.
Variants
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
Blanket Implementations
Mutably borrows from an owned value. Read more