pub struct Partition<'a> { /* private fields */ }Expand description
A partitioned view of a database.
Scopes queries to documents whose _id starts with "{partition}:".
Implementations§
Source§impl Partition<'_>
impl Partition<'_>
Sourcepub async fn all_docs(&self, opts: AllDocsOptions) -> Result<AllDocsResponse>
pub async fn all_docs(&self, opts: AllDocsOptions) -> Result<AllDocsResponse>
Query all documents in this partition.
Sourcepub async fn find(&self, opts: FindOptions) -> Result<FindResponse>
pub async fn find(&self, opts: FindOptions) -> Result<FindResponse>
Run a Mango find query scoped to this partition.
Auto Trait Implementations§
impl<'a> Freeze for Partition<'a>
impl<'a> !RefUnwindSafe for Partition<'a>
impl<'a> Send for Partition<'a>
impl<'a> Sync for Partition<'a>
impl<'a> Unpin for Partition<'a>
impl<'a> !UnwindSafe for Partition<'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