[][src]Struct lightspeed_cms::service::schema::SchemaService

pub struct SchemaService<RepoManager: CmsRepositoryManager> { /* fields omitted */ }

Implementations

impl<RepoManager: CmsRepositoryManager> SchemaService<RepoManager>[src]

pub fn new(
    c3p0: RepoManager::C3P0,
    schema_repo: RepoManager::SchemaRepo
) -> Self
[src]

pub async fn create_schema<'_>(
    &'_ self,
    create_schema_dto: CreateSchemaDto
) -> Result<SchemaModel, LightSpeedError>
[src]

pub async fn delete<'_>(
    &'_ self,
    schema_model: SchemaModel
) -> Result<SchemaModel, LightSpeedError>
[src]

pub async fn delete_by_project_id<'_, '_>(
    &'_ self,
    conn: &'_ mut RepoManager::Conn,
    project_id: i64
) -> Result<u64, LightSpeedError>
[src]

Trait Implementations

impl<RepoManager: Clone + CmsRepositoryManager> Clone for SchemaService<RepoManager> where
    RepoManager::C3P0: Clone,
    RepoManager::SchemaRepo: Clone
[src]

Auto Trait Implementations

impl<RepoManager> RefUnwindSafe for SchemaService<RepoManager> where
    <RepoManager as CmsRepositoryManager>::C3P0: RefUnwindSafe,
    <RepoManager as CmsRepositoryManager>::SchemaRepo: RefUnwindSafe

impl<RepoManager> Send for SchemaService<RepoManager> where
    <RepoManager as CmsRepositoryManager>::C3P0: Send,
    <RepoManager as CmsRepositoryManager>::SchemaRepo: Send

impl<RepoManager> Sync for SchemaService<RepoManager> where
    <RepoManager as CmsRepositoryManager>::C3P0: Sync,
    <RepoManager as CmsRepositoryManager>::SchemaRepo: Sync

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,