pub struct MessagesRepo<'a> { /* private fields */ }Implementations§
Source§impl MessagesRepo<'_>
impl MessagesRepo<'_>
pub fn add(&self, new: NewMessage) -> Result<MessageRecord>
pub fn get(&self, id: i64) -> Result<Option<MessageRecord>>
pub fn list_for_session(&self, session_id: &str) -> Result<Vec<MessageRecord>>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MessagesRepo<'a>
impl<'a> !Send for MessagesRepo<'a>
impl<'a> !Sync for MessagesRepo<'a>
impl<'a> !UnwindSafe for MessagesRepo<'a>
impl<'a> Freeze for MessagesRepo<'a>
impl<'a> Unpin for MessagesRepo<'a>
impl<'a> UnsafeUnpin for MessagesRepo<'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