DefaultableFields

Trait DefaultableFields 

Source
pub trait DefaultableFields {
    // Required method
    fn default_fields() -> Vec<Self>
       where Self: Sized;
}
Expand description

A trait for field enums that can provide a default set of fields.

This is used to request a standard, useful set of data when the user doesn’t specify which fields they want.

Required Methods§

Source

fn default_fields() -> Vec<Self>
where Self: Sized,

Returns a vector of the enum’s variants that should be used as the default.

Implementors§