pub enum CloudBackend {
S3 {
backend: S3Backend,
key: String,
},
Http {
backend: HttpBackend,
path: String,
},
}Expand description
Multi-cloud storage backend abstraction
Variants§
Implementations§
Source§impl CloudBackend
impl CloudBackend
Sourcepub fn from_url(url: &str) -> Result<Self>
pub fn from_url(url: &str) -> Result<Self>
Creates a cloud backend from a URL
Supported URL formats:
s3://bucket/key- AWS S3az://container/blob- Azure Blob Storagegs://bucket/object- Google Cloud Storage<http://example.com/path>or<https://example.com/path>- HTTP/HTTPS
§Examples
use oxigdal_cloud::CloudBackend;
let backend = CloudBackend::from_url("s3://my-bucket/data/file.tif")?;Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloudBackend
impl RefUnwindSafe for CloudBackend
impl Send for CloudBackend
impl Sync for CloudBackend
impl Unpin for CloudBackend
impl UnsafeUnpin for CloudBackend
impl UnwindSafe for CloudBackend
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
Mutably borrows from an owned value. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.