/// Return if media type is gzipped
Return if media type is gzipped
Return if media type is gzipped
pub fn is_gzipped(&self) -> bool {
        match self {
            LayerMediaType::Tar => false,
            LayerMediaType::TarGz => true,
            LayerMediaType::NondistributableTar => false,
            LayerMediaType::NondistributableTarGz => true,
            // Assume other media types are gzipped.
            LayerMediaType::Other(_) => true,
        }
    }
pub fn is_gzipped ( & self ) -> bool { match self { LayerMediaType :: Tar => false , LayerMediaType :: TarGz => true , LayerMediaType :: NondistributableTar => false , LayerMediaType :: NondistributableTarGz => true , // Assume other media types are gzipped. LayerMediaType :: Other ( _ ) => true , } }
Return if media type is gzipped
Return if media type is gzipped
&self