#[non_exhaustive]pub enum Scheme {
Show 62 variants
AliyunDrive,
Alluxio,
Azblob,
Azdls,
Azfile,
B2,
Cacache,
CloudflareKv,
Compfs,
Cos,
D1,
Dashmap,
Dbfs,
Dropbox,
Etcd,
Foundationdb,
Fs,
Ftp,
Gcs,
Gdrive,
Ghac,
Github,
Gridfs,
Hdfs,
HdfsNative,
Http,
Huggingface,
Ipfs,
Ipmfs,
Koofr,
Lakefs,
Memcached,
Memory,
MiniMoka,
Moka,
Mongodb,
Monoiofs,
Mysql,
Obs,
Onedrive,
Oss,
Pcloud,
Persy,
Postgresql,
Redb,
Redis,
Rocksdb,
S3,
Seafile,
Sftp,
Sled,
Sqlite,
Surrealdb,
Swift,
Tikv,
Upyun,
VercelArtifacts,
VercelBlob,
Webdav,
Webhdfs,
YandexDisk,
Custom(&'static str),
}Expand description
Services that OpenDAL supports
§Notes
- Scheme is
non_exhaustive, new variant COULD be added at any time. - New variant SHOULD be added in alphabet orders,
- Users MUST NOT relay on its order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AliyunDrive
[aliyun-drive][crate::services::AliyunDrive]: Aliyun Drive services.
Alluxio
[alluxio][crate::services::Alluxio]: Alluxio services.
Azblob
[azblob][crate::services::Azblob]: Azure Storage Blob services.
Azdls
[Azdls][crate::services::Azdls]: Azure Data Lake Storage Gen2.
Azfile
[azfile][crate::services::Azfile]: Azfile Services
B2
[B2][crate::services::B2]: Backblaze B2 Services.
Cacache
[cacache][crate::services::Cacache]: cacache backend support.
CloudflareKv
[cloudflare-kv][crate::services::CloudflareKv]: Cloudflare KV services.
Compfs
[Compfs][crate::services::Compfs]: Compio fs Services.
Cos
[cos][crate::services::Cos]: Tencent Cloud Object Storage services.
D1
[d1][crate::services::D1]: D1 services
Dashmap
[dashmap][crate::services::Dashmap]: dashmap backend support.
Dbfs
[dbfs][crate::services::Dbfs]: DBFS backend support.
Dropbox
[dropbox][crate::services::Dropbox]: Dropbox services.
Etcd
[etcd][crate::services::Etcd]: Etcd Services
Foundationdb
[foundationdb][crate::services::Foundationdb]: Foundationdb services.
Fs
fs: POSIX-like file system.
Ftp
[ftp][crate::services::Ftp]: FTP backend.
Gcs
[gcs][crate::services::Gcs]: Google Cloud Storage backend.
Gdrive
[gdrive][crate::services::Gdrive]: GoogleDrive services.
Ghac
[ghac][crate::services::Ghac]: GitHub Action Cache services.
Github
[Github Contents][crate::services::Github]: Github contents support.
Gridfs
gridfs: MongoDB Gridfs Services
Hdfs
[hdfs][crate::services::Hdfs]: Hadoop Distributed File System.
HdfsNative
Native HDFS: Hdfs Native service, using rust hdfs-native client for hdfs
Http
[http][crate::services::Http]: HTTP backend.
Huggingface
[huggingface][crate::services::Huggingface]: Huggingface services.
Ipfs
[ipmfs][crate::services::Ipfs]: IPFS HTTP Gateway
Ipmfs
[ipmfs][crate::services::Ipmfs]: IPFS mutable file system
Koofr
[Koofr][crate::services::Koofr]: Koofr Services.
Lakefs
lakefs: LakeFS Services
Memcached
[memcached][crate::services::Memcached]: Memcached service support.
Memory
memory: In memory backend support.
MiniMoka
[mini-moka][crate::services::MiniMoka]: Mini Moka backend support.
Moka
[moka][crate::services::Moka]: moka backend support.
Mongodb
mongodb: MongoDB Services
Monoiofs
[monoiofs][crate::services::Monoiofs]: monoio fs services.
Mysql
[mysql][crate::services::Mysql]: Mysql services
Obs
[obs][crate::services::Obs]: Huawei Cloud OBS services.
Onedrive
[onedrive][crate::services::Onedrive]: Microsoft OneDrive services.
Oss
[oss][crate::services::Oss]: Aliyun Object Storage Services
Pcloud
[Pcloud][crate::services::Pcloud]: Pcloud Services.
Persy
[persy][crate::services::Persy]: persy backend support.
Postgresql
[postgresql][crate::services::Postgresql]: Postgresql services
Redb
[redb][crate::services::Redb]: Redb Services
Redis
[redis][crate::services::Redis]: Redis services
Rocksdb
[rocksdb][crate::services::Rocksdb]: RocksDB services
S3
s3: AWS S3 alike services.
Seafile
[Seafile][crate::services::Seafile]: Seafile Services.
Sftp
[sftp][crate::services::Sftp]: SFTP services
Sled
[sled][crate::services::Sled]: Sled services
Sqlite
[sqlite][crate::services::Sqlite]: Sqlite services
Surrealdb
surrealdb: Surrealdb Services
Swift
[swift][crate::services::Swift]: Swift backend support.
Tikv
[tikv][crate::services::Tikv]: Tikv Services
Upyun
[Upyun][crate::services::Upyun]: Upyun Services.
VercelArtifacts
[Vercel Artifacts][crate::services::VercelArtifacts]: Vercel Artifacts service, as known as Vercel Remote Caching.
VercelBlob
[VercelBlob][crate::services::VercelBlob]: VercelBlob Services.
Webdav
[webdav][crate::services::Webdav]: WebDAV support.
Webhdfs
[webhdfs][crate::services::Webhdfs]: WebHDFS RESTful API Services
YandexDisk
[YandexDisk][crate::services::YandexDisk]: YandexDisk Services.
Custom(&'static str)
Custom that allow users to implement services outside OpenDAL.
§NOTE
- Custom must not overwrite any existing services name.
- Custom must be in lower case.
Implementations§
Source§impl Scheme
impl Scheme
Sourcepub fn into_static(self) -> &'static str
pub fn into_static(self) -> &'static str
Convert self into static str.
Sourcepub fn enabled() -> HashSet<Scheme>
pub fn enabled() -> HashSet<Scheme>
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.
§Examples
use opendal::Scheme;
let enabled_schemes = Scheme::enabled();
if !enabled_schemes.contains(&Scheme::Memory) {
panic!("s3 support is not enabled")
}Trait Implementations§
impl Copy for Scheme
impl Eq for Scheme
impl StructuralPartialEq for Scheme
Auto Trait Implementations§
impl Freeze for Scheme
impl RefUnwindSafe for Scheme
impl Send for Scheme
impl Sync for Scheme
impl Unpin for Scheme
impl UnwindSafe for Scheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.