pub struct InlineElementRepository<'a> { /* private fields */ }Implementations§
Source§impl<'a> InlineElementRepository<'a>
impl<'a> InlineElementRepository<'a>
pub fn new( table: Box<dyn InlineElementTable + 'a>, transaction: &'a Transaction, ) -> Self
pub fn create_orphan( &mut self, event_buffer: &mut EventBuffer, entity: &InlineElement, ) -> Result<InlineElement, RepositoryError>
pub fn create_orphan_multi( &mut self, event_buffer: &mut EventBuffer, entities: &[InlineElement], ) -> Result<Vec<InlineElement>, RepositoryError>
pub fn create( &mut self, event_buffer: &mut EventBuffer, entity: &InlineElement, owner_id: EntityId, index: i32, ) -> Result<InlineElement, RepositoryError>
pub fn create_multi( &mut self, event_buffer: &mut EventBuffer, entities: &[InlineElement], owner_id: EntityId, index: i32, ) -> Result<Vec<InlineElement>, RepositoryError>
pub fn get( &self, id: &EntityId, ) -> Result<Option<InlineElement>, RepositoryError>
pub fn get_multi( &self, ids: &[EntityId], ) -> Result<Vec<Option<InlineElement>>, RepositoryError>
pub fn get_all(&self) -> Result<Vec<InlineElement>, RepositoryError>
pub fn update( &mut self, event_buffer: &mut EventBuffer, entity: &InlineElement, ) -> Result<InlineElement, RepositoryError>
pub fn update_multi( &mut self, event_buffer: &mut EventBuffer, entities: &[InlineElement], ) -> Result<Vec<InlineElement>, RepositoryError>
pub fn update_with_relationships( &mut self, event_buffer: &mut EventBuffer, entity: &InlineElement, ) -> Result<InlineElement, RepositoryError>
pub fn update_with_relationships_multi( &mut self, event_buffer: &mut EventBuffer, entities: &[InlineElement], ) -> Result<Vec<InlineElement>, RepositoryError>
pub fn remove( &mut self, event_buffer: &mut EventBuffer, id: &EntityId, ) -> Result<(), RepositoryError>
pub fn remove_multi( &mut self, event_buffer: &mut EventBuffer, ids: &[EntityId], ) -> Result<(), RepositoryError>
pub fn get_relationships_from_owner( &self, owner_id: &EntityId, ) -> Result<Vec<EntityId>, RepositoryError>
pub fn set_relationships_in_owner( &mut self, event_buffer: &mut EventBuffer, owner_id: &EntityId, ids: &[EntityId], ) -> Result<(), RepositoryError>
pub fn snapshot( &self, _ids: &[EntityId], ) -> Result<EntityTreeSnapshot, RepositoryError>
pub fn restore( &mut self, event_buffer: &mut EventBuffer, snap: &EntityTreeSnapshot, ) -> Result<(), RepositoryError>
Auto Trait Implementations§
impl<'a> Freeze for InlineElementRepository<'a>
impl<'a> !RefUnwindSafe for InlineElementRepository<'a>
impl<'a> !Send for InlineElementRepository<'a>
impl<'a> !Sync for InlineElementRepository<'a>
impl<'a> Unpin for InlineElementRepository<'a>
impl<'a> UnsafeUnpin for InlineElementRepository<'a>
impl<'a> !UnwindSafe for InlineElementRepository<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more