/// This produces a user-facing string representation of a download error if it is a variant
/// that needs to be stored as a [`CacheStatus::CacheSpecificError`] entry in the download cache.
This produces a user-facing string representation of a download error if it is a variant
that needs to be stored as a [`CacheStatus::CacheSpecificError`] entry in the download cache.
This produces a user - facing string representation of a download error if it is a variant that needs to be stored as a [ ` CacheStatus :: CacheSpecificError ` ] entry in the download cache .
pub fn for_cache(&self) -> String {
        match self {
            DownloadError::Gcs(inner) => format!("{}: {}", self, inner),
            DownloadError::Sentry(inner) => format!("{}: {}", self, inner),
            DownloadError::S3(inner) => format!("{}: {}", self, inner),
            DownloadError::Permissions => self.to_string(),
            DownloadError::CachedError(original_message) => original_message.clone(),
            _ => format!("{}", self),
        }
    }
pub fn for_cache ( & self ) -> String { match self { DownloadError :: Gcs ( inner ) => format ! ( " " self inner ) , DownloadError :: Sentry ( inner ) => format ! ( " " self inner ) , DownloadError :: S3 ( inner ) => format ! ( " " self inner ) , DownloadError :: Permissions => self . to_string ( ) , DownloadError :: CachedError ( original_message ) => original_message . clone ( ) , _ => format ! ( " " self ) , } }
This produces a user-facing string representation of a download error if it is a variant
that needs to be stored as a [`CacheStatus::CacheSpecificError`] entry in the download cache.
This produces a user - facing string representation of a download error if it is a variant that needs to be stored as a [ ` CacheStatus :: CacheSpecificError ` ] entry in the download cache .
&self