1 2 3 4 5 6 7 8
#[derive(Debug, Clone, Default)] pub enum LoadState<T> { #[default] Idle, Loading, Loaded(T), Error(String), }