1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/// Image Fetch Option #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub enum FetchKind { ForceRefresh, UseCached, } #[doc(hidden)] impl Into<bool> for FetchKind { fn into(self) -> bool { match self { FetchKind::ForceRefresh => true, FetchKind::UseCached => false, } } }