pub struct SchemaService<RepoManager: CmsRepositoryManager> { /* private fields */ }
Implementations§
Source§impl<RepoManager: CmsRepositoryManager> SchemaService<RepoManager>
impl<RepoManager: CmsRepositoryManager> SchemaService<RepoManager>
pub fn new( c3p0: RepoManager::C3P0, schema_repo: RepoManager::SchemaRepo, ) -> Self
pub async fn create_schema( &self, create_schema_dto: CreateSchemaDto, ) -> Result<SchemaModel, LightSpeedError>
pub async fn delete( &self, schema_model: SchemaModel, ) -> Result<SchemaModel, LightSpeedError>
pub async fn delete_by_project_id( &self, conn: &mut RepoManager::Conn, project_id: i64, ) -> Result<u64, LightSpeedError>
Trait Implementations§
Source§impl<RepoManager: Clone + CmsRepositoryManager> Clone for SchemaService<RepoManager>
impl<RepoManager: Clone + CmsRepositoryManager> Clone for SchemaService<RepoManager>
Source§fn clone(&self) -> SchemaService<RepoManager>
fn clone(&self) -> SchemaService<RepoManager>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<RepoManager> Freeze for SchemaService<RepoManager>where
<RepoManager as CmsRepositoryManager>::C3P0: Freeze,
<RepoManager as CmsRepositoryManager>::SchemaRepo: Freeze,
impl<RepoManager> RefUnwindSafe for SchemaService<RepoManager>where
<RepoManager as CmsRepositoryManager>::C3P0: RefUnwindSafe,
<RepoManager as CmsRepositoryManager>::SchemaRepo: RefUnwindSafe,
impl<RepoManager> Send for SchemaService<RepoManager>
impl<RepoManager> Sync for SchemaService<RepoManager>
impl<RepoManager> Unpin for SchemaService<RepoManager>where
<RepoManager as CmsRepositoryManager>::C3P0: Unpin,
<RepoManager as CmsRepositoryManager>::SchemaRepo: Unpin,
impl<RepoManager> UnwindSafe for SchemaService<RepoManager>where
<RepoManager as CmsRepositoryManager>::C3P0: UnwindSafe,
<RepoManager as CmsRepositoryManager>::SchemaRepo: UnwindSafe,
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