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§
Source§impl Clone for Visibility
impl Clone for Visibility
Source§fn clone(&self) -> Visibility
fn clone(&self) -> Visibility
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Visibility
impl Debug for Visibility
Source§impl Default for Visibility
impl Default for Visibility
impl Copy for Visibility
Auto Trait Implementations§
impl Freeze for Visibility
impl RefUnwindSafe for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
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