pub struct OAuthGrantListResponse {
pub data: Vec<OAuthGrant>,
}Expand description
List of active OAuth grants for the authenticated user.
JSON schema
{
"title": "OAuthGrantListResponse",
"description": "List of active OAuth grants for the authenticated
user.",
"examples": [
{
"data": [
{
"created_at": "2026-05-30T12:00:00.000Z",
"grant_type": "device_code",
"id": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"last_used_at": "2026-06-01T09:30:00.000Z"
}
]
}
],
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"description": "Active grants.",
"type": "array",
"items": {
"$ref": "#/components/schemas/OAuthGrant"
}
}
},
"x-stainless-model": "oauth.oauth_grant_list_response"
}Fields§
§data: Vec<OAuthGrant>Active grants.
Trait Implementations§
Source§impl Clone for OAuthGrantListResponse
impl Clone for OAuthGrantListResponse
Source§fn clone(&self) -> OAuthGrantListResponse
fn clone(&self) -> OAuthGrantListResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OAuthGrantListResponse
impl Debug for OAuthGrantListResponse
Source§impl<'de> Deserialize<'de> for OAuthGrantListResponse
impl<'de> Deserialize<'de> for OAuthGrantListResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&OAuthGrantListResponse> for OAuthGrantListResponse
impl From<&OAuthGrantListResponse> for OAuthGrantListResponse
Source§fn from(value: &OAuthGrantListResponse) -> Self
fn from(value: &OAuthGrantListResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OAuthGrantListResponse
impl RefUnwindSafe for OAuthGrantListResponse
impl Send for OAuthGrantListResponse
impl Sync for OAuthGrantListResponse
impl Unpin for OAuthGrantListResponse
impl UnsafeUnpin for OAuthGrantListResponse
impl UnwindSafe for OAuthGrantListResponse
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