pub enum LoginAccountResponse {
ApiKey,
Chatgpt {
auth_url: String,
login_id: String,
},
ChatgptDeviceCode {
login_id: String,
user_code: String,
verification_url: String,
},
ChatgptAuthTokens,
}Expand description
LoginAccountResponse
JSON schema
{
"title": "LoginAccountResponse",
"oneOf": [
{
"title": "ApiKeyv2::LoginAccountResponse",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "ApiKeyv2::LoginAccountResponseType",
"type": "string",
"enum": [
"apiKey"
]
}
}
},
{
"title": "Chatgptv2::LoginAccountResponse",
"type": "object",
"required": [
"authUrl",
"loginId",
"type"
],
"properties": {
"authUrl": {
"description": "URL the client should open in a browser to initiate the OAuth flow.",
"type": "string"
},
"loginId": {
"type": "string"
},
"type": {
"title": "Chatgptv2::LoginAccountResponseType",
"type": "string",
"enum": [
"chatgpt"
]
}
}
},
{
"title": "ChatgptDeviceCodev2::LoginAccountResponse",
"type": "object",
"required": [
"loginId",
"type",
"userCode",
"verificationUrl"
],
"properties": {
"loginId": {
"type": "string"
},
"type": {
"title": "ChatgptDeviceCodev2::LoginAccountResponseType",
"type": "string",
"enum": [
"chatgptDeviceCode"
]
},
"userCode": {
"description": "One-time code the user must enter after signing in.",
"type": "string"
},
"verificationUrl": {
"description": "URL the client should open in a browser to complete device code authorization.",
"type": "string"
}
}
},
{
"title": "ChatgptAuthTokensv2::LoginAccountResponse",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"title": "ChatgptAuthTokensv2::LoginAccountResponseType",
"type": "string",
"enum": [
"chatgptAuthTokens"
]
}
}
}
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Variants§
ApiKey
Chatgpt
Chatgptv2::LoginAccountResponse
Fields
ChatgptDeviceCode
ChatgptDeviceCodev2::LoginAccountResponse
Fields
ChatgptAuthTokens
Trait Implementations§
Source§impl Clone for LoginAccountResponse
impl Clone for LoginAccountResponse
Source§fn clone(&self) -> LoginAccountResponse
fn clone(&self) -> LoginAccountResponse
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 LoginAccountResponse
impl Debug for LoginAccountResponse
Source§impl<'de> Deserialize<'de> for LoginAccountResponse
impl<'de> Deserialize<'de> for LoginAccountResponse
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
Auto Trait Implementations§
impl Freeze for LoginAccountResponse
impl RefUnwindSafe for LoginAccountResponse
impl Send for LoginAccountResponse
impl Sync for LoginAccountResponse
impl Unpin for LoginAccountResponse
impl UnsafeUnpin for LoginAccountResponse
impl UnwindSafe for LoginAccountResponse
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