pub enum OutStore {
Local(LocalSource),
S3 {
src: Box<S3Source>,
prefix: String,
},
}Expand description
The destination for an fmp-sync run: a local path or an S3/R2 bucket. Both
implement ObjectSink/ObjectSource, so sync_into writes a
byte-identical data-layout.md tree either way (the S3 variant prepends an
optional key prefix from the URL path).
Variants§
Implementations§
Trait Implementations§
Source§impl ObjectLister for OutStore
impl ObjectLister for OutStore
Source§impl ObjectSink for OutStore
impl ObjectSink for OutStore
Auto Trait Implementations§
impl Freeze for OutStore
impl RefUnwindSafe for OutStore
impl Send for OutStore
impl Sync for OutStore
impl Unpin for OutStore
impl UnsafeUnpin for OutStore
impl UnwindSafe for OutStore
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