pub struct S3Source { /* private fields */ }Expand description
An ObjectSource backed by an S3-compatible bucket.
Implementations§
Source§impl S3Source
impl S3Source
Sourcepub fn new(
endpoint: &str,
bucket: &str,
access_key: &str,
secret_key: &str,
region: &str,
) -> Result<Self, DataError>
pub fn new( endpoint: &str, bucket: &str, access_key: &str, secret_key: &str, region: &str, ) -> Result<Self, DataError>
endpoint is the host root (no bucket), e.g.
https://<acct>.r2.cloudflarestorage.com. Path-style addressing, so the
bucket is appended to the path (works with custom endpoints).
Trait Implementations§
Source§impl ObjectSink for S3Source
impl ObjectSink for S3Source
Auto Trait Implementations§
impl Freeze for S3Source
impl RefUnwindSafe for S3Source
impl Send for S3Source
impl Sync for S3Source
impl Unpin for S3Source
impl UnsafeUnpin for S3Source
impl UnwindSafe for S3Source
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more