pub struct DedicatedInferencesListTokensResponseTokensItem {
pub created_at: Option<DateTime<Utc>>,
pub id: Option<Uuid>,
pub is_managed: Option<bool>,
pub name: Option<String>,
pub value: Option<String>,
}Expand description
Access token for authenticating to Dedicated Inference endpoints.
JSON schema
{
"description": "Access token for authenticating to Dedicated Inference endpoints.",
"type": "object",
"properties": {
"created_at": {
"readOnly": true,
"examples": [
"2024-01-09T20:44:32Z"
],
"type": "string",
"format": "date-time"
},
"id": {
"description": "Unique ID of the token.",
"readOnly": true,
"examples": [
"01333f14-a903-4b8e-92b3-363a767aa052"
],
"type": "string",
"format": "uuid"
},
"is_managed": {
"description": "When true, the token is managed by DigitalOcean (for example, system-provisioned). When false, the token was created by the user.",
"readOnly": true,
"examples": [
false
],
"type": "boolean"
},
"name": {
"description": "Name of the token.",
"readOnly": true,
"examples": [
"first-token"
],
"type": "string"
},
"value": {
"description": "Token value; only returned once on create. Store securely.",
"readOnly": true,
"examples": [
"di_xxxxxxxxxxxxxxxxxxxxxxxx"
],
"type": "string"
}
}
}Fields§
§created_at: Option<DateTime<Utc>>§id: Option<Uuid>Unique ID of the token.
is_managed: Option<bool>When true, the token is managed by DigitalOcean (for example, system-provisioned). When false, the token was created by the user.
name: Option<String>Name of the token.
value: Option<String>Token value; only returned once on create. Store securely.
Trait Implementations§
Source§impl Clone for DedicatedInferencesListTokensResponseTokensItem
impl Clone for DedicatedInferencesListTokensResponseTokensItem
Source§fn clone(&self) -> DedicatedInferencesListTokensResponseTokensItem
fn clone(&self) -> DedicatedInferencesListTokensResponseTokensItem
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<'de> Deserialize<'de> for DedicatedInferencesListTokensResponseTokensItem
impl<'de> Deserialize<'de> for DedicatedInferencesListTokensResponseTokensItem
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<&DedicatedInferencesListTokensResponseTokensItem> for DedicatedInferencesListTokensResponseTokensItem
impl From<&DedicatedInferencesListTokensResponseTokensItem> for DedicatedInferencesListTokensResponseTokensItem
Source§fn from(value: &DedicatedInferencesListTokensResponseTokensItem) -> Self
fn from(value: &DedicatedInferencesListTokensResponseTokensItem) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DedicatedInferencesListTokensResponseTokensItem
impl RefUnwindSafe for DedicatedInferencesListTokensResponseTokensItem
impl Send for DedicatedInferencesListTokensResponseTokensItem
impl Sync for DedicatedInferencesListTokensResponseTokensItem
impl Unpin for DedicatedInferencesListTokensResponseTokensItem
impl UnsafeUnpin for DedicatedInferencesListTokensResponseTokensItem
impl UnwindSafe for DedicatedInferencesListTokensResponseTokensItem
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