pub struct Management<C: Client> {
pub http_client: Arc<C>,
pub user_agent: String,
pub endpoint: String,
pub canonical_endpoint: String,
pub auth: Auth,
/* private fields */
}Fields§
§http_client: Arc<C>§user_agent: String§endpoint: String§canonical_endpoint: String§auth: AuthImplementations§
Source§impl<C: Client> Management<C>
impl<C: Client> Management<C>
pub fn new_request( &self, method: Method, path: impl Into<String>, content_type: impl Into<String>, on_behalf_of: Option<OnBehalfOfInfo>, headers: Option<HashMap<&str, &str>>, body: Option<Bytes>, ) -> Request
pub async fn execute( &self, method: Method, path: impl Into<String>, content_type: impl Into<String>, on_behalf_of: Option<OnBehalfOfInfo>, headers: Option<HashMap<&str, &str>>, body: Option<Bytes>, ) -> Result<Response>
pub async fn get_terse_cluster_config( &self, opts: &GetTerseClusterConfigOptions<'_>, ) -> Result<TerseConfig>
pub async fn get_full_cluster_config( &self, opts: &GetFullClusterConfigOptions<'_>, ) -> Result<FullClusterConfig>
pub async fn get_terse_bucket_config( &self, opts: &GetTerseBucketConfigOptions<'_>, ) -> Result<TerseConfig>
pub async fn get_full_bucket_config( &self, opts: &GetFullBucketConfigOptions<'_>, ) -> Result<FullBucketConfig>
pub async fn load_sample_bucket( &self, opts: &LoadSampleBucketOptions<'_>, ) -> Result<()>
pub async fn index_status( &self, opts: &IndexStatusOptions<'_>, ) -> Result<IndexStatus>
pub async fn get_auto_failover_settings( &self, opts: &GetAutoFailoverSettingsOptions<'_>, ) -> Result<AutoFailoverSettings>
pub async fn get_bucket_stats( &self, opts: &GetBucketStatsOptions<'_>, ) -> Result<Box<RawValue>>
Source§impl<C: Client> Management<C>
impl<C: Client> Management<C>
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<()>
Source§impl<C: Client> Management<C>
impl<C: Client> Management<C>
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 update_collection( &self, opts: &UpdateCollectionOptions<'_>, ) -> Result<UpdateCollectionResponse>
pub async fn delete_collection( &self, opts: &DeleteCollectionOptions<'_>, ) -> Result<DeleteCollectionResponse>
Source§impl<C: Client> Management<C>
impl<C: Client> Management<C>
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<()>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Management<C>
impl<C> RefUnwindSafe for Management<C>where
C: RefUnwindSafe,
impl<C> Send for Management<C>
impl<C> Sync for Management<C>
impl<C> Unpin for Management<C>
impl<C> UnsafeUnpin for Management<C>
impl<C> UnwindSafe for Management<C>where
C: RefUnwindSafe,
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