pub struct Agent { /* private fields */ }Implementations§
Source§impl Agent
impl Agent
pub async fn bucket_features(&self) -> Result<Vec<BucketFeature>>
pub async fn upsert(&self, opts: UpsertOptions<'_>) -> Result<UpsertResult>
pub async fn get(&self, opts: GetOptions<'_>) -> Result<GetResult>
pub async fn get_meta(&self, opts: GetMetaOptions<'_>) -> Result<GetMetaResult>
pub async fn delete(&self, opts: DeleteOptions<'_>) -> Result<DeleteResult>
pub async fn get_and_lock( &self, opts: GetAndLockOptions<'_>, ) -> Result<GetAndLockResult>
pub async fn get_and_touch( &self, opts: GetAndTouchOptions<'_>, ) -> Result<GetAndTouchResult>
pub async fn unlock(&self, opts: UnlockOptions<'_>) -> Result<UnlockResult>
pub async fn touch(&self, opts: TouchOptions<'_>) -> Result<TouchResult>
pub async fn add(&self, opts: AddOptions<'_>) -> Result<AddResult>
pub async fn replace(&self, opts: ReplaceOptions<'_>) -> Result<ReplaceResult>
pub async fn append(&self, opts: AppendOptions<'_>) -> Result<AppendResult>
pub async fn prepend(&self, opts: PrependOptions<'_>) -> Result<PrependResult>
pub async fn increment( &self, opts: IncrementOptions<'_>, ) -> Result<IncrementResult>
pub async fn decrement( &self, opts: DecrementOptions<'_>, ) -> Result<DecrementResult>
pub async fn get_collection_id( &self, opts: GetCollectionIdOptions<'_>, ) -> Result<GetCollectionIdResult>
pub async fn lookup_in( &self, opts: LookupInOptions<'_>, ) -> Result<LookupInResult>
pub async fn mutate_in( &self, opts: MutateInOptions<'_>, ) -> Result<MutateInResult>
pub async fn query(&self, opts: QueryOptions) -> Result<QueryResultStream>
pub async fn prepared_query( &self, opts: QueryOptions, ) -> Result<QueryResultStream>
pub async fn get_all_indexes( &self, opts: &GetAllIndexesOptions<'_>, ) -> Result<Vec<Index>>
pub async fn create_primary_index( &self, opts: &CreatePrimaryIndexOptions<'_>, ) -> Result<()>
pub async fn create_index(&self, opts: &CreateIndexOptions<'_>) -> Result<()>
pub async fn drop_primary_index( &self, opts: &DropPrimaryIndexOptions<'_>, ) -> Result<()>
pub async fn drop_index(&self, opts: &DropIndexOptions<'_>) -> Result<()>
pub async fn build_deferred_indexes( &self, opts: &BuildDeferredIndexesOptions<'_>, ) -> Result<()>
pub async fn watch_indexes(&self, opts: &WatchIndexesOptions<'_>) -> Result<()>
pub async fn ensure_index(&self, opts: &EnsureIndexOptions<'_>) -> Result<()>
pub async fn search(&self, opts: SearchOptions) -> Result<SearchResultStream>
pub async fn get_search_index( &self, opts: &GetIndexOptions<'_>, ) -> Result<Index>
pub async fn upsert_search_index( &self, opts: &UpsertIndexOptions<'_>, ) -> Result<()>
pub async fn delete_search_index( &self, opts: &DeleteIndexOptions<'_>, ) -> Result<()>
pub async fn get_all_search_indexes( &self, opts: &GetAllIndexesOptions<'_>, ) -> Result<Vec<Index>>
pub async fn analyze_search_document( &self, opts: &AnalyzeDocumentOptions<'_>, ) -> Result<DocumentAnalysis>
pub async fn get_search_indexed_documents_count( &self, opts: &GetIndexedDocumentsCountOptions<'_>, ) -> Result<u64>
pub async fn pause_search_index_ingest( &self, opts: &PauseIngestOptions<'_>, ) -> Result<()>
pub async fn resume_search_index_ingest( &self, opts: &ResumeIngestOptions<'_>, ) -> Result<()>
pub async fn allow_search_index_querying( &self, opts: &AllowQueryingOptions<'_>, ) -> Result<()>
pub async fn disallow_search_index_querying( &self, opts: &DisallowQueryingOptions<'_>, ) -> Result<()>
pub async fn freeze_search_index_plan( &self, opts: &FreezePlanOptions<'_>, ) -> Result<()>
pub async fn unfreeze_search_index_plan( &self, opts: &UnfreezePlanOptions<'_>, ) -> Result<()>
pub async fn get_collection_manifest( &self, opts: &GetCollectionManifestOptions<'_>, ) -> Result<CollectionManifest>
pub async fn create_scope( &self, opts: &CreateScopeOptions<'_>, ) -> Result<CreateScopeResponse>
pub async fn delete_scope( &self, opts: &DeleteScopeOptions<'_>, ) -> Result<DeleteScopeResponse>
pub async fn create_collection( &self, opts: &CreateCollectionOptions<'_>, ) -> Result<CreateCollectionResponse>
pub async fn delete_collection( &self, opts: &DeleteCollectionOptions<'_>, ) -> Result<DeleteCollectionResponse>
pub async fn update_collection( &self, opts: &UpdateCollectionOptions<'_>, ) -> Result<UpdateCollectionResponse>
pub async fn ensure_manifest( &self, opts: &EnsureManifestOptions<'_>, ) -> Result<()>
pub async fn get_all_buckets( &self, opts: &GetAllBucketsOptions<'_>, ) -> Result<Vec<BucketDef>>
pub async fn get_bucket(&self, opts: &GetBucketOptions<'_>) -> Result<BucketDef>
pub async fn create_bucket(&self, opts: &CreateBucketOptions<'_>) -> Result<()>
pub async fn update_bucket(&self, opts: &UpdateBucketOptions<'_>) -> Result<()>
pub async fn delete_bucket(&self, opts: &DeleteBucketOptions<'_>) -> Result<()>
pub async fn flush_bucket(&self, opts: &FlushBucketOptions<'_>) -> Result<()>
pub async fn get_user( &self, opts: &GetUserOptions<'_>, ) -> Result<UserAndMetadata>
pub async fn get_all_users( &self, opts: &GetAllUsersOptions<'_>, ) -> Result<Vec<UserAndMetadata>>
pub async fn upsert_user(&self, opts: &UpsertUserOptions<'_>) -> Result<()>
pub async fn delete_user(&self, opts: &DeleteUserOptions<'_>) -> Result<()>
pub async fn get_roles( &self, opts: &GetRolesOptions<'_>, ) -> Result<Vec<RoleAndDescription>>
pub async fn get_group(&self, opts: &GetGroupOptions<'_>) -> Result<Group>
pub async fn get_all_groups( &self, opts: &GetAllGroupsOptions<'_>, ) -> Result<Vec<Group>>
pub async fn upsert_group(&self, opts: &UpsertGroupOptions<'_>) -> Result<()>
pub async fn delete_group(&self, opts: &DeleteGroupOptions<'_>) -> Result<()>
pub async fn change_password( &self, opts: &ChangePasswordOptions<'_>, ) -> Result<()>
pub async fn ping(&self, opts: &PingOptions) -> Result<PingReport>
pub async fn ensure_user(&self, opts: &EnsureUserOptions<'_>) -> Result<()>
pub async fn ensure_group(&self, opts: &EnsureGroupOptions<'_>) -> Result<()>
pub async fn ensure_bucket(&self, opts: &EnsureBucketOptions<'_>) -> Result<()>
pub async fn ensure_search_index( &self, opts: &EnsureIndexOptions<'_>, ) -> Result<()>
pub async fn wait_until_ready(&self, opts: &WaitUntilReadyOptions) -> Result<()>
pub async fn diagnostics( &self, opts: &DiagnosticsOptions, ) -> Result<DiagnosticsResult>
Auto Trait Implementations§
impl Freeze for Agent
impl !RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl !UnwindSafe for Agent
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