pub struct RegionsService { /* private fields */ }Expand description
Operations on the Regions resource.
Implementations§
Source§impl RegionsService
impl RegionsService
pub async fn create( &self, req: &CreateRegionRequest, ) -> Result<IdResponse, Error>
pub async fn list( &self, opts: &RegionListOptions, ) -> Result<PaginatedResponse<Region>, Error>
pub async fn get(&self, region_id: i64) -> Result<Region, Error>
pub async fn edit( &self, region_id: i64, req: &EditRegionRequest, ) -> Result<IdResponse, Error>
pub async fn deactivate(&self, region_id: i64) -> Result<IdResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for RegionsService
impl !UnwindSafe for RegionsService
impl Freeze for RegionsService
impl Send for RegionsService
impl Sync for RegionsService
impl Unpin for RegionsService
impl UnsafeUnpin for RegionsService
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