pub struct GcsAssetStore {
pub bucket: String,
pub client: Client,
}Fields§
§bucket: String§client: ClientTrait Implementations§
Source§impl AssetStore for GcsAssetStore
impl AssetStore for GcsAssetStore
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 GcsAssetStore
impl !UnwindSafe for GcsAssetStore
impl Freeze for GcsAssetStore
impl Send for GcsAssetStore
impl Sync for GcsAssetStore
impl Unpin for GcsAssetStore
impl UnsafeUnpin for GcsAssetStore
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