pub struct MetadataClustersService { /* private fields */ }Expand description
Operations on the MetadataClusters resource.
Implementations§
Source§impl MetadataClustersService
impl MetadataClustersService
pub async fn create( &self, region_id: i64, req: &CreateMetadataClusterRequest, ) -> Result<IdResponse, Error>
pub async fn list( &self, region_id: i64, opts: Option<&MetadataClusterListOptions>, ) -> Result<PaginatedResponse<MetadataCluster>, Error>
pub async fn get( &self, region_id: i64, cluster_id: i64, ) -> Result<MetadataCluster, Error>
pub async fn edit( &self, region_id: i64, cluster_id: i64, req: &EditMetadataClusterRequest, ) -> Result<IdResponse, Error>
pub async fn set_default( &self, region_id: i64, cluster_id: i64, ) -> Result<IdResponse, Error>
pub async fn set_ready( &self, region_id: i64, cluster_id: i64, req: &SetMetadataClusterReadyRequest, ) -> Result<SetReadyMetadataClusterResponse, Error>
pub async fn deactivate( &self, region_id: i64, cluster_id: i64, ) -> Result<IdResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for MetadataClustersService
impl !UnwindSafe for MetadataClustersService
impl Freeze for MetadataClustersService
impl Send for MetadataClustersService
impl Sync for MetadataClustersService
impl Unpin for MetadataClustersService
impl UnsafeUnpin for MetadataClustersService
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