pub struct SubscriptionsClient<'a> { /* private fields */ }Expand description
Client for the Azure Subscriptions API.
Wraps SubscriptionsOps with an ergonomic, auto-paginating method.
Implementations§
Source§impl<'a> SubscriptionsClient<'a>
impl<'a> SubscriptionsClient<'a>
Sourcepub async fn list(&self) -> Result<Vec<SubscriptionInfo>>
pub async fn list(&self) -> Result<Vec<SubscriptionInfo>>
List all subscriptions accessible to the authenticated principal.
Handles pagination automatically — returns all subscriptions.
This is a tenant-level call; no subscription ID is required in the path. The bearer token used by the underlying client is tenant-scoped and grants access to every subscription under the tenant.
Auto Trait Implementations§
impl<'a> Freeze for SubscriptionsClient<'a>
impl<'a> !RefUnwindSafe for SubscriptionsClient<'a>
impl<'a> Send for SubscriptionsClient<'a>
impl<'a> Sync for SubscriptionsClient<'a>
impl<'a> Unpin for SubscriptionsClient<'a>
impl<'a> UnsafeUnpin for SubscriptionsClient<'a>
impl<'a> !UnwindSafe for SubscriptionsClient<'a>
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