pub struct ApiKeyPermissions {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl ApiKeyPermissions
impl ApiKeyPermissions
sourcepub async fn get_scopes(
&self
) -> Result<Response<GetScopesResponse>, ClientError>
pub async fn get_scopes( &self ) -> Result<Response<GetScopesResponse>, ClientError>
Retrieve a list of scopes for which this user has access.
This function performs a GET
to the /scopes
endpoint.
This endpoint returns a list of all scopes that this user has access to.
API Keys are used to authenticate with SendGrid’s v3 API.
API Keys may be assigned certain permissions, or scopes, that limit which API endpoints they are able to access.
This endpoint returns all the scopes assigned to the key you use to authenticate with it. To retrieve the scopes assigned to another key, you can pass an API key ID to the “Retrieve an existing API key” endpoint.
For a more detailed explanation of how you can use API Key permissions, please visit our API Keys documentation.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
Auto Trait Implementations§
impl !RefUnwindSafe for ApiKeyPermissions
impl Send for ApiKeyPermissions
impl Sync for ApiKeyPermissions
impl Unpin for ApiKeyPermissions
impl !UnwindSafe for ApiKeyPermissions
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