Struct lightspeed_file_store::repository::db::pg::pg_file_store_binary::PgFileStoreBinaryRepository
source · pub struct PgFileStoreBinaryRepository { /* private fields */ }
Trait Implementations§
source§impl Clone for PgFileStoreBinaryRepository
impl Clone for PgFileStoreBinaryRepository
source§fn clone(&self) -> PgFileStoreBinaryRepository
fn clone(&self) -> PgFileStoreBinaryRepository
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl DBFileStoreBinaryRepository for PgFileStoreBinaryRepository
impl DBFileStoreBinaryRepository for PgFileStoreBinaryRepository
type Conn = PgConnection
fn read_file<'a, 'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
repository_name: &'life2 str,
file_path: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<BinaryContent<'a>, LightSpeedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn save_file<'a, 'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
repository_name: &'life2 str,
file_path: &'life3 str,
content: &'a BinaryContent<'a>
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn delete_file<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Conn,
repository_name: &'life2 str,
file_path: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<u64, LightSpeedError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for PgFileStoreBinaryRepository
impl Send for PgFileStoreBinaryRepository
impl Sync for PgFileStoreBinaryRepository
impl Unpin for PgFileStoreBinaryRepository
impl UnwindSafe for PgFileStoreBinaryRepository
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