pub struct Collection { /* private fields */ }Implementations§
Source§impl Collection
impl Collection
pub fn get_doc<T: Doc>(&self, id: &str) -> Result<T>
pub fn create_doc<T: Doc>(&self, doc: T) -> Result<T>
pub fn update_doc<T: Doc>(&self, doc: T) -> Result<T>
pub fn delete_doc<T: Doc>(&self, doc: T) -> Result<()>
pub fn find<T: Doc, Q: Serialize, P: Serialize>( &self, query: Q, projection: Option<P>, ) -> Result<Vec<T>>
pub fn update_many<T: Doc, Q: Serialize, U: Serialize>( &self, filter: Q, update: U, ) -> Result<Vec<T>>
Auto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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