pub struct ApiTokenCreateInput {
pub created_at: Option<DateTime<Utc>>,
pub expires_at: Option<DateTime<Utc>>,
pub from_browser: Option<bool>,
pub id: Option<String>,
pub last_used_at: Option<DateTime<Utc>>,
pub name: String,
pub object: Option<String>,
pub token: Option<String>,
pub updated_at: Option<DateTime<Utc>>,
pub user_id: Option<String>,
}
Expand description
ApiTokenCreateInput
JSON schema
{
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/ApiToken"
}
],
"required": [
"name"
]
}
Fields§
§created_at: Option<DateTime<Utc>>
Time at which the object was created.
expires_at: Option<DateTime<Utc>>
The time this ApiToken expires.
from_browser: Option<bool>
Whether this ApiToken was created from the browser.
id: Option<String>
This is the internal ID for this ApiToken. You don’t need to record this information, since you will not need to use it.
last_used_at: Option<DateTime<Utc>>
The last time this ApiToken was used.
name: String
The name of the ApiToken.
object: Option<String>
String representing the object’s type. Objects of the same type share the same value.
token: Option<String>
The actual token that you will use to authenticate your requests. > Be careful, this token is only returned once, when the token is created.
updated_at: Option<DateTime<Utc>>
Time at which the object was last updated.
user_id: Option<String>
The ID of the user that created this ApiToken.
Implementations§
Source§impl ApiTokenCreateInput
impl ApiTokenCreateInput
pub fn builder() -> ApiTokenCreateInput
Trait Implementations§
Source§impl Clone for ApiTokenCreateInput
impl Clone for ApiTokenCreateInput
Source§fn clone(&self) -> ApiTokenCreateInput
fn clone(&self) -> ApiTokenCreateInput
Returns a duplicate of the value. Read more
1.0.0 · 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 ApiTokenCreateInput
impl Debug for ApiTokenCreateInput
Source§impl<'de> Deserialize<'de> for ApiTokenCreateInput
impl<'de> Deserialize<'de> for ApiTokenCreateInput
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<&ApiTokenCreateInput> for ApiTokenCreateInput
impl From<&ApiTokenCreateInput> for ApiTokenCreateInput
Source§fn from(value: &ApiTokenCreateInput) -> Self
fn from(value: &ApiTokenCreateInput) -> Self
Converts to this type from the input type.
Source§impl From<ApiTokenCreateInput> for ApiTokenCreateInput
impl From<ApiTokenCreateInput> for ApiTokenCreateInput
Source§fn from(value: ApiTokenCreateInput) -> Self
fn from(value: ApiTokenCreateInput) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ApiTokenCreateInput
impl JsonSchema for ApiTokenCreateInput
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for ApiTokenCreateInput
impl Serialize for ApiTokenCreateInput
Source§impl TryFrom<ApiTokenCreateInput> for ApiTokenCreateInput
impl TryFrom<ApiTokenCreateInput> for ApiTokenCreateInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ApiTokenCreateInput) -> Result<Self, ConversionError>
fn try_from(value: ApiTokenCreateInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ApiTokenCreateInput
impl RefUnwindSafe for ApiTokenCreateInput
impl Send for ApiTokenCreateInput
impl Sync for ApiTokenCreateInput
impl Unpin for ApiTokenCreateInput
impl UnwindSafe for ApiTokenCreateInput
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