You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "suyanhanx (via GitHub)" <gi...@apache.org> on 2023/10/18 04:31:02 UTC
Re: [PR] feat(core): Add enabled for Scheme [incubator-opendal]
suyanhanx commented on code in PR #3331:
URL: https://github.com/apache/incubator-opendal/pull/3331#discussion_r1363159840
##########
core/src/types/scheme.rs:
##########
@@ -134,6 +135,99 @@ impl Scheme {
pub fn into_static(self) -> &'static str {
self.into()
}
+
+ /// Get all enabled schemes.
+ ///
+ /// OpenDAL could be compiled with different features, which will enable different schemes.
+ /// This function returns all enabled schemes so users can make decisions based on it.
+ pub fn enabled() -> HashSet<Scheme> {
Review Comment:
Does the naming here need to be more specific?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org