Enum s3_algo::ObjectSource [−][src]
pub enum ObjectSource { File { path: PathBuf, key: String, }, Data { data: Vec<u8>, key: String, }, }
Variants
Implementations
impl ObjectSource
[src]
impl ObjectSource
[src]pub fn file(path: PathBuf, key: String) -> Self
[src]
pub fn data<D: Into<Vec<u8>>>(data: D, key: String) -> Self
[src]
pub async fn create_stream(&self) -> Result<(ByteStream, u64), Error>
[src]
pub async fn create_upload_future<C, R>(
self,
s3: C,
bucket: String,
default: R
) -> Result<(impl Future<Output = Result<(), Error>>, u64), Error> where
C: S3 + Clone,
R: Fn() -> PutObjectRequest + Clone + Unpin + Sync + Send,
[src]
self,
s3: C,
bucket: String,
default: R
) -> Result<(impl Future<Output = Result<(), Error>>, u64), Error> where
C: S3 + Clone,
R: Fn() -> PutObjectRequest + Clone + Unpin + Sync + Send,
pub fn get_key(&self) -> &str
[src]
Trait Implementations
impl Clone for ObjectSource
[src]
impl Clone for ObjectSource
[src]fn clone(&self) -> ObjectSource
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for ObjectSource
impl RefUnwindSafe for ObjectSource
impl Send for ObjectSource
impl Send for ObjectSource
impl Sync for ObjectSource
impl Sync for ObjectSource
impl Unpin for ObjectSource
impl Unpin for ObjectSource
impl UnwindSafe for ObjectSource
impl UnwindSafe for ObjectSource
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self