pub struct RegionClustersService { /* private fields */ }Expand description
Operations on the RegionClusters resource.
Implementations§
Source§impl RegionClustersService
impl RegionClustersService
pub async fn create( &self, region_id: i64, req: &CreateRegionClusterRequest, ) -> Result<IdResponse, Error>
pub async fn list( &self, region_id: i64, opts: Option<&RegionClusterListOptions>, ) -> Result<PaginatedResponse<RegionCluster>, Error>
pub async fn get( &self, region_id: i64, cluster_id: i64, ) -> Result<RegionCluster, Error>
pub async fn edit( &self, region_id: i64, cluster_id: i64, req: &EditRegionClusterRequest, ) -> 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: &SetRegionClusterReadyRequest, ) -> Result<SetReadyRegionClusterResponse, Error>
pub async fn deactivate( &self, region_id: i64, cluster_id: i64, ) -> Result<IdResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for RegionClustersService
impl !UnwindSafe for RegionClustersService
impl Freeze for RegionClustersService
impl Send for RegionClustersService
impl Sync for RegionClustersService
impl Unpin for RegionClustersService
impl UnsafeUnpin for RegionClustersService
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