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

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>[src]

impl<RepoManager> Send for ContentService<RepoManager>[src]

impl<RepoManager> Sync for ContentService<RepoManager>[src]

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

impl<RepoManager> !UnwindSafe for ContentService<RepoManager>[src]

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