Skip to main content

InlineElementTable

pub trait InlineElementTable {
    // Required methods
    fn create(
        &mut self,
        entity: &InlineElement,
    ) -> Result<InlineElement, RepositoryError>;
    fn create_multi(
        &mut self,
        entities: &[InlineElement],
    ) -> Result<Vec<InlineElement>, RepositoryError>;
    fn get(
        &self,
        id: &EntityId,
    ) -> Result<Option<InlineElement>, RepositoryError>;
    fn get_multi(
        &self,
        ids: &[EntityId],
    ) -> Result<Vec<Option<InlineElement>>, RepositoryError>;
    fn get_all(&self) -> Result<Vec<InlineElement>, RepositoryError>;
    fn update(
        &mut self,
        entity: &InlineElement,
    ) -> Result<InlineElement, RepositoryError>;
    fn update_multi(
        &mut self,
        entities: &[InlineElement],
    ) -> Result<Vec<InlineElement>, RepositoryError>;
    fn update_with_relationships(
        &mut self,
        entity: &InlineElement,
    ) -> Result<InlineElement, RepositoryError>;
    fn update_with_relationships_multi(
        &mut self,
        entities: &[InlineElement],
    ) -> Result<Vec<InlineElement>, RepositoryError>;
    fn remove(&mut self, id: &EntityId) -> Result<(), RepositoryError>;
    fn remove_multi(&mut self, ids: &[EntityId]) -> Result<(), RepositoryError>;
}

Required Methods§

Implementors§