pub struct CloudCrdbHandler { /* private fields */ }
Expand description
Handler for Cloud Active-Active database operations
Implementations§
Source§impl CloudCrdbHandler
impl CloudCrdbHandler
pub fn new(client: CloudClient) -> Self
Sourcepub async fn update(&self, crdb_id: u32, request: Value) -> Result<Value>
pub async fn update(&self, crdb_id: u32, request: Value) -> Result<Value>
Update Active-Active database
Sourcepub async fn get_regions(&self, crdb_id: u32) -> Result<Value>
pub async fn get_regions(&self, crdb_id: u32) -> Result<Value>
Get Active-Active database regions
Sourcepub async fn add_region(&self, crdb_id: u32, request: Value) -> Result<Value>
pub async fn add_region(&self, crdb_id: u32, request: Value) -> Result<Value>
Add region to Active-Active database
Sourcepub async fn remove_region(&self, crdb_id: u32, region_id: u32) -> Result<Value>
pub async fn remove_region(&self, crdb_id: u32, region_id: u32) -> Result<Value>
Remove region from Active-Active database
Sourcepub async fn get_tasks(&self, crdb_id: u32) -> Result<Value>
pub async fn get_tasks(&self, crdb_id: u32) -> Result<Value>
Get Active-Active database tasks/jobs
Sourcepub async fn get_task(&self, crdb_id: u32, task_id: &str) -> Result<Value>
pub async fn get_task(&self, crdb_id: u32, task_id: &str) -> Result<Value>
Get specific Active-Active task
Auto Trait Implementations§
impl Freeze for CloudCrdbHandler
impl !RefUnwindSafe for CloudCrdbHandler
impl Send for CloudCrdbHandler
impl Sync for CloudCrdbHandler
impl Unpin for CloudCrdbHandler
impl !UnwindSafe for CloudCrdbHandler
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