[−][src]Struct lightspeed_cms::service::content::ContentService
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]
&'_ self,
schema: &'_ SchemaModel
) -> Result<(), LightSpeedError>
pub async fn drop_content_table<'_>(
&'_ self,
schema_id: i64
) -> Result<(), LightSpeedError>
[src]
&'_ self,
schema_id: i64
) -> Result<(), LightSpeedError>
pub async fn count_all_by_schema_id<'_>(
&'_ self,
schema_id: i64
) -> Result<u64, LightSpeedError>
[src]
&'_ self,
schema_id: i64
) -> Result<u64, LightSpeedError>
pub async fn create_content<'_, '_>(
&'_ self,
schema: &'_ Schema,
create_content_dto: CreateContentDto
) -> Result<ContentModel, LightSpeedError>
[src]
&'_ self,
schema: &'_ Schema,
create_content_dto: CreateContentDto
) -> Result<ContentModel, LightSpeedError>
pub async fn delete_content<'_>(
&'_ self,
content_model: ContentModel
) -> Result<ContentModel, LightSpeedError>
[src]
&'_ self,
content_model: ContentModel
) -> Result<ContentModel, LightSpeedError>
Trait Implementations
impl<RepoManager: Clone + CmsRepositoryManager> Clone for ContentService<RepoManager> where
RepoManager::C3P0: Clone,
RepoManager::ContentRepo: Clone,
[src]
RepoManager::C3P0: Clone,
RepoManager::ContentRepo: Clone,
fn clone(&self) -> ContentService<RepoManager>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
<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,
<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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,