[][src]Struct lightspeed_cms::service::content::ContentService

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

Implementations

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

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

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

pub async fn drop_content_table<'_>(
    &'_ self,
    schema_id: i64
) -> Result<(), LightSpeedError>
[src]

pub async fn count_all_by_schema_id<'_>(
    &'_ self,
    schema_id: i64
) -> Result<u64, LightSpeedError>
[src]

pub async fn create_content<'_, '_>(
    &'_ self,
    schema: &'_ Schema,
    create_content_dto: CreateContentDto
) -> Result<ContentModel, LightSpeedError>
[src]

pub async fn delete_content<'_>(
    &'_ self,
    content_model: ContentModel
) -> Result<ContentModel, LightSpeedError>
[src]

Trait Implementations

impl<RepoManager: Clone + CmsRepositoryManager> Clone for ContentService<RepoManager> where
    RepoManager::C3P0: Clone,
    RepoManager::ContentRepo: Clone
[src]

Auto Trait Implementations

impl<RepoManager> !RefUnwindSafe for ContentService<RepoManager>

impl<RepoManager> Send for ContentService<RepoManager> where
    <RepoManager as CmsRepositoryManager>::C3P0: Send,
    <RepoManager as CmsRepositoryManager>::ContentRepo: Send + Sync

impl<RepoManager> Sync for ContentService<RepoManager> where
    <RepoManager as CmsRepositoryManager>::C3P0: Sync,
    <RepoManager as CmsRepositoryManager>::ContentRepo: Send + Sync

impl<RepoManager> Unpin for ContentService<RepoManager> where
    RepoManager: Unpin,
    <RepoManager as CmsRepositoryManager>::C3P0: Unpin

impl<RepoManager> !UnwindSafe for ContentService<RepoManager>

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>,