pub struct DescribeRegions { /* private fields */ }Expand description
Query the endpoint information of regions
You can call set_regions to query specific regions; by default all are queried. See the Alibaba Cloud documentation for details
ⓘ
let client = OssClient::new("AccessKey ID","AccessKey Secret","oss-cn-beijing.aliyuncs.com");
let regions = client.describe_regions()
.set_regions("oss-cn-hangzhou")
.send().await;
println!("{:#?}", regions);Implementations§
Source§impl DescribeRegions
impl DescribeRegions
Sourcepub fn set_regions(self, regions: impl ToString) -> Self
pub fn set_regions(self, regions: impl ToString) -> Self
Specify a single region to query; this requires a Region ID such as oss-cn-hangzhou
Sourcepub fn set_endpoint(self, endpoint: impl ToString) -> Self
pub fn set_endpoint(self, endpoint: impl ToString) -> Self
Specify which endpoint to use for the request
Defaults to oss.aliyuncs.com. If your network cannot access it, set an accessible endpoint
Auto Trait Implementations§
impl Freeze for DescribeRegions
impl !RefUnwindSafe for DescribeRegions
impl Send for DescribeRegions
impl Sync for DescribeRegions
impl Unpin for DescribeRegions
impl !UnwindSafe for DescribeRegions
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