Agent

Struct Agent 

Source
pub struct Agent { /* private fields */ }

Implementations§

Source§

impl Agent

Source

pub async fn new(opts: AgentOptions) -> Result<Self>

Source§

impl Agent

Source

pub async fn bucket_features(&self) -> Result<Vec<BucketFeature>>

Source

pub async fn upsert(&self, opts: UpsertOptions<'_>) -> Result<UpsertResult>

Source

pub async fn get(&self, opts: GetOptions<'_>) -> Result<GetResult>

Source

pub async fn get_meta(&self, opts: GetMetaOptions<'_>) -> Result<GetMetaResult>

Source

pub async fn delete(&self, opts: DeleteOptions<'_>) -> Result<DeleteResult>

Source

pub async fn get_and_lock( &self, opts: GetAndLockOptions<'_>, ) -> Result<GetAndLockResult>

Source

pub async fn get_and_touch( &self, opts: GetAndTouchOptions<'_>, ) -> Result<GetAndTouchResult>

Source

pub async fn unlock(&self, opts: UnlockOptions<'_>) -> Result<UnlockResult>

Source

pub async fn touch(&self, opts: TouchOptions<'_>) -> Result<TouchResult>

Source

pub async fn add(&self, opts: AddOptions<'_>) -> Result<AddResult>

Source

pub async fn replace(&self, opts: ReplaceOptions<'_>) -> Result<ReplaceResult>

Source

pub async fn append(&self, opts: AppendOptions<'_>) -> Result<AppendResult>

Source

pub async fn prepend(&self, opts: PrependOptions<'_>) -> Result<PrependResult>

Source

pub async fn increment( &self, opts: IncrementOptions<'_>, ) -> Result<IncrementResult>

Source

pub async fn decrement( &self, opts: DecrementOptions<'_>, ) -> Result<DecrementResult>

Source

pub async fn get_collection_id( &self, opts: GetCollectionIdOptions<'_>, ) -> Result<GetCollectionIdResult>

Source

pub async fn lookup_in( &self, opts: LookupInOptions<'_>, ) -> Result<LookupInResult>

Source

pub async fn mutate_in( &self, opts: MutateInOptions<'_>, ) -> Result<MutateInResult>

Source

pub async fn query(&self, opts: QueryOptions) -> Result<QueryResultStream>

Source

pub async fn prepared_query( &self, opts: QueryOptions, ) -> Result<QueryResultStream>

Source

pub async fn get_all_indexes( &self, opts: &GetAllIndexesOptions<'_>, ) -> Result<Vec<Index>>

Source

pub async fn create_primary_index( &self, opts: &CreatePrimaryIndexOptions<'_>, ) -> Result<()>

Source

pub async fn create_index(&self, opts: &CreateIndexOptions<'_>) -> Result<()>

Source

pub async fn drop_primary_index( &self, opts: &DropPrimaryIndexOptions<'_>, ) -> Result<()>

Source

pub async fn drop_index(&self, opts: &DropIndexOptions<'_>) -> Result<()>

Source

pub async fn build_deferred_indexes( &self, opts: &BuildDeferredIndexesOptions<'_>, ) -> Result<()>

Source

pub async fn watch_indexes(&self, opts: &WatchIndexesOptions<'_>) -> Result<()>

Source

pub async fn ensure_index(&self, opts: &EnsureIndexOptions<'_>) -> Result<()>

Source

pub async fn search(&self, opts: SearchOptions) -> Result<SearchResultStream>

Source

pub async fn get_search_index( &self, opts: &GetIndexOptions<'_>, ) -> Result<Index>

Source

pub async fn upsert_search_index( &self, opts: &UpsertIndexOptions<'_>, ) -> Result<()>

Source

pub async fn delete_search_index( &self, opts: &DeleteIndexOptions<'_>, ) -> Result<()>

Source

pub async fn get_all_search_indexes( &self, opts: &GetAllIndexesOptions<'_>, ) -> Result<Vec<Index>>

Source

pub async fn analyze_search_document( &self, opts: &AnalyzeDocumentOptions<'_>, ) -> Result<DocumentAnalysis>

Source

pub async fn get_search_indexed_documents_count( &self, opts: &GetIndexedDocumentsCountOptions<'_>, ) -> Result<u64>

Source

pub async fn pause_search_index_ingest( &self, opts: &PauseIngestOptions<'_>, ) -> Result<()>

Source

pub async fn resume_search_index_ingest( &self, opts: &ResumeIngestOptions<'_>, ) -> Result<()>

Source

pub async fn allow_search_index_querying( &self, opts: &AllowQueryingOptions<'_>, ) -> Result<()>

Source

pub async fn disallow_search_index_querying( &self, opts: &DisallowQueryingOptions<'_>, ) -> Result<()>

Source

pub async fn freeze_search_index_plan( &self, opts: &FreezePlanOptions<'_>, ) -> Result<()>

Source

pub async fn unfreeze_search_index_plan( &self, opts: &UnfreezePlanOptions<'_>, ) -> Result<()>

Source

pub async fn get_collection_manifest( &self, opts: &GetCollectionManifestOptions<'_>, ) -> Result<CollectionManifest>

Source

pub async fn create_scope( &self, opts: &CreateScopeOptions<'_>, ) -> Result<CreateScopeResponse>

Source

pub async fn delete_scope( &self, opts: &DeleteScopeOptions<'_>, ) -> Result<DeleteScopeResponse>

Source

pub async fn create_collection( &self, opts: &CreateCollectionOptions<'_>, ) -> Result<CreateCollectionResponse>

Source

pub async fn delete_collection( &self, opts: &DeleteCollectionOptions<'_>, ) -> Result<DeleteCollectionResponse>

Source

pub async fn update_collection( &self, opts: &UpdateCollectionOptions<'_>, ) -> Result<UpdateCollectionResponse>

Source

pub async fn ensure_manifest( &self, opts: &EnsureManifestOptions<'_>, ) -> Result<()>

Source

pub async fn get_all_buckets( &self, opts: &GetAllBucketsOptions<'_>, ) -> Result<Vec<BucketDef>>

Source

pub async fn get_bucket(&self, opts: &GetBucketOptions<'_>) -> Result<BucketDef>

Source

pub async fn create_bucket(&self, opts: &CreateBucketOptions<'_>) -> Result<()>

Source

pub async fn update_bucket(&self, opts: &UpdateBucketOptions<'_>) -> Result<()>

Source

pub async fn delete_bucket(&self, opts: &DeleteBucketOptions<'_>) -> Result<()>

Source

pub async fn flush_bucket(&self, opts: &FlushBucketOptions<'_>) -> Result<()>

Source

pub async fn get_user( &self, opts: &GetUserOptions<'_>, ) -> Result<UserAndMetadata>

Source

pub async fn get_all_users( &self, opts: &GetAllUsersOptions<'_>, ) -> Result<Vec<UserAndMetadata>>

Source

pub async fn upsert_user(&self, opts: &UpsertUserOptions<'_>) -> Result<()>

Source

pub async fn delete_user(&self, opts: &DeleteUserOptions<'_>) -> Result<()>

Source

pub async fn get_roles( &self, opts: &GetRolesOptions<'_>, ) -> Result<Vec<RoleAndDescription>>

Source

pub async fn get_group(&self, opts: &GetGroupOptions<'_>) -> Result<Group>

Source

pub async fn get_all_groups( &self, opts: &GetAllGroupsOptions<'_>, ) -> Result<Vec<Group>>

Source

pub async fn upsert_group(&self, opts: &UpsertGroupOptions<'_>) -> Result<()>

Source

pub async fn delete_group(&self, opts: &DeleteGroupOptions<'_>) -> Result<()>

Source

pub async fn change_password( &self, opts: &ChangePasswordOptions<'_>, ) -> Result<()>

Source

pub async fn ping(&self, opts: &PingOptions) -> Result<PingReport>

Source

pub async fn ensure_user(&self, opts: &EnsureUserOptions<'_>) -> Result<()>

Source

pub async fn ensure_group(&self, opts: &EnsureGroupOptions<'_>) -> Result<()>

Source

pub async fn ensure_bucket(&self, opts: &EnsureBucketOptions<'_>) -> Result<()>

Source

pub async fn ensure_search_index( &self, opts: &EnsureIndexOptions<'_>, ) -> Result<()>

Source

pub async fn wait_until_ready(&self, opts: &WaitUntilReadyOptions) -> Result<()>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,