pub struct Admin<'a> { /* private fields */ }Available on crate feature
admin only.Expand description
Top-level namespace handle for the Admin API.
Obtained via Client::admin.
Implementations§
Source§impl<'a> Admin<'a>
impl<'a> Admin<'a>
Sourcepub fn organization(&self) -> Organization<'a>
pub fn organization(&self) -> Organization<'a>
Sub-namespace for the authenticated organization
(/v1/organizations/me).
Sourcepub fn workspaces(&self) -> Workspaces<'a>
pub fn workspaces(&self) -> Workspaces<'a>
Sub-namespace for workspaces.
Sourcepub fn workspace_members(
&self,
workspace_id: impl Into<String>,
) -> WorkspaceMembers<'a>
pub fn workspace_members( &self, workspace_id: impl Into<String>, ) -> WorkspaceMembers<'a>
Sub-namespace for workspace members. Scoped to a single workspace at call time.
Sourcepub fn usage_report(&self) -> UsageReport<'a>
pub fn usage_report(&self) -> UsageReport<'a>
Sub-namespace for the usage reports.
Sourcepub fn rate_limits(&self) -> RateLimits<'a>
pub fn rate_limits(&self) -> RateLimits<'a>
Sub-namespace for rate-limit listings (org + workspace).
Auto Trait Implementations§
impl<'a> Freeze for Admin<'a>
impl<'a> !RefUnwindSafe for Admin<'a>
impl<'a> Send for Admin<'a>
impl<'a> Sync for Admin<'a>
impl<'a> Unpin for Admin<'a>
impl<'a> UnsafeUnpin for Admin<'a>
impl<'a> !UnwindSafe for Admin<'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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.