#[non_exhaustive]pub enum Scheme {
Show 65 variants
AliyunDrive,
Atomicserver,
Azblob,
Azdls,
B2,
Compfs,
Seafile,
Upyun,
VercelBlob,
YandexDisk,
Pcloud,
Koofr,
Cacache,
CloudflareKv,
Cos,
D1,
Dashmap,
Etcd,
Foundationdb,
Dbfs,
Fs,
Ftp,
Gcs,
Ghac,
Hdfs,
Http,
Huggingface,
Alluxio,
Ipfs,
Ipmfs,
Icloud,
Memcached,
Memory,
MiniMoka,
Moka,
Monoiofs,
Obs,
Onedrive,
Gdrive,
Dropbox,
Oss,
Persy,
Redis,
Postgresql,
Mysql,
Sqlite,
Rocksdb,
S3,
Sftp,
Sled,
Swift,
VercelArtifacts,
Webdav,
Webhdfs,
Redb,
Tikv,
Azfile,
Mongodb,
Gridfs,
Github,
HdfsNative,
Surrealdb,
Lakefs,
NebulaGraph,
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.
Atomicserver
[atomicserver][crate::services::Atomicserver]: Atomicserver services.
Azblob
[azblob][crate::services::Azblob]: Azure Storage Blob services.
Azdls
[Azdls][crate::services::Azdls]: Azure Data Lake Storage Gen2.
B2
[B2][crate::services::B2]: Backblaze B2 Services.
Compfs
[Compfs][crate::services::Compfs]: Compio fs Services.
Seafile
[Seafile][crate::services::Seafile]: Seafile Services.
Upyun
[Upyun][crate::services::Upyun]: Upyun Services.
VercelBlob
[VercelBlob][crate::services::VercelBlob]: VercelBlob Services.
YandexDisk
[YandexDisk][crate::services::YandexDisk]: YandexDisk Services.
Pcloud
[Pcloud][crate::services::Pcloud]: Pcloud Services.
Koofr
[Koofr][crate::services::Koofr]: Koofr Services.
Cacache
[cacache][crate::services::Cacache]: cacache backend support.
CloudflareKv
[cloudflare-kv][crate::services::CloudflareKv]: Cloudflare KV 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.
Etcd
[etcd][crate::services::Etcd]: Etcd Services
Foundationdb
[foundationdb][crate::services::Foundationdb]: Foundationdb services.
Dbfs
[dbfs][crate::services::Dbfs]: DBFS backend support.
Fs
fs: POSIX-like file system.
Ftp
[ftp][crate::services::Ftp]: FTP backend.
Gcs
[gcs][crate::services::Gcs]: Google Cloud Storage backend.
Ghac
[ghac][crate::services::Ghac]: GitHub Action Cache services.
Hdfs
[hdfs][crate::services::Hdfs]: Hadoop Distributed File System.
Http
[http][crate::services::Http]: HTTP backend.
Huggingface
[huggingface][crate::services::Huggingface]: Huggingface services.
Alluxio
[alluxio][crate::services::Alluxio]: Alluxio services.
Ipfs
[ipmfs][crate::services::Ipfs]: IPFS HTTP Gateway
Ipmfs
[ipmfs][crate::services::Ipmfs]: IPFS mutable file system
Icloud
[icloud][crate::services::Icloud]: APPLE icloud 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.
Monoiofs
[monoiofs][crate::services::Monoiofs]: monoio fs services.
Obs
[obs][crate::services::Obs]: Huawei Cloud OBS services.
Onedrive
[onedrive][crate::services::Onedrive]: Microsoft OneDrive services.
Gdrive
[gdrive][crate::services::Gdrive]: GoogleDrive services.
Dropbox
[dropbox][crate::services::Dropbox]: Dropbox services.
Oss
[oss][crate::services::Oss]: Aliyun Object Storage Services
Persy
[persy][crate::services::Persy]: persy backend support.
Redis
[redis][crate::services::Redis]: Redis services
Postgresql
[postgresql][crate::services::Postgresql]: Postgresql services
Mysql
[mysql][crate::services::Mysql]: Mysql services
Sqlite
[sqlite][crate::services::Sqlite]: Sqlite services
Rocksdb
[rocksdb][crate::services::Rocksdb]: RocksDB services
S3
s3: AWS S3 alike services.
Sftp
[sftp][crate::services::Sftp]: SFTP services
Sled
[sled][crate::services::Sled]: Sled services
Swift
[swift][crate::services::Swift]: Swift backend support.
VercelArtifacts
[Vercel Artifacts][crate::services::VercelArtifacts]: Vercel Artifacts service, as known as Vercel Remote Caching.
Webdav
[webdav][crate::services::Webdav]: WebDAV support.
Webhdfs
[webhdfs][crate::services::Webhdfs]: WebHDFS RESTful API Services
Redb
[redb][crate::services::Redb]: Redb Services
Tikv
[tikv][crate::services::Tikv]: Tikv Services
Azfile
[azfile][crate::services::Azfile]: Azfile Services
Mongodb
mongodb: MongoDB Services
Gridfs
gridfs: MongoDB Gridfs Services
Github
[Github Contents][crate::services::Github]: Github contents support.
HdfsNative
Native HDFS: Hdfs Native service, using rust hdfs-native client for hdfs
Surrealdb
surrealdb: Surrealdb Services
Lakefs
lakefs: LakeFS Services
NebulaGraph
NebulaGraph: NebulaGraph 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.