pub struct S3AssetStore {
pub bucket: String,
pub region: String,
pub endpoint: Option<String>,
pub client: Client,
}Fields§
§bucket: String§region: String§endpoint: Option<String>§client: ClientTrait Implementations§
Source§impl AssetStore for S3AssetStore
impl AssetStore for S3AssetStore
fn put<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
object_key: &'life1 str,
content_type: &'life2 str,
bytes: &'life3 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
object_key: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for S3AssetStore
impl !UnwindSafe for S3AssetStore
impl Freeze for S3AssetStore
impl Send for S3AssetStore
impl Sync for S3AssetStore
impl Unpin for S3AssetStore
impl UnsafeUnpin for S3AssetStore
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