/// Return if a media type is distributable
Return if a media type is distributable
Return if a media type is distributable
pub fn is_distributable(&self) -> bool {
        match self {
            LayerMediaType::Tar => true,
            LayerMediaType::TarGz => true,
            LayerMediaType::NondistributableTar => false,
            LayerMediaType::NondistributableTarGz => false,
            // Regard any other media types as distributable by default
            LayerMediaType::Other(_) => true,
        }
    }
pub fn is_distributable ( & self ) -> bool { match self { LayerMediaType :: Tar => true , LayerMediaType :: TarGz => true , LayerMediaType :: NondistributableTar => false , LayerMediaType :: NondistributableTarGz => false , // Regard any other media types as distributable by default LayerMediaType :: Other ( _ ) => true , } }
Return if a media type is distributable
Return if a media type is distributable
&self