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

All
SerializableOnly
DeserializableOnly

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.