pub struct OAuthTokenDeviceCodePendingError {
pub error: OAuthTokenDeviceCodePendingErrorError,
pub error_description: Option<String>,
pub interval: Option<f64>,
}Expand description
Error response returned while the device authorization is still pending (RFC 8628 Section 3.5).
JSON schema
{
"title": "OAuthTokenDeviceCodePendingError",
"description": "Error response returned while the device authorization
is still pending (RFC 8628 Section 3.5).",
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"description": "The error code indicating why the token request
failed.",
"type": "string",
"enum": [
"access_denied",
"authorization_pending",
"expired_token",
"slow_down"
]
},
"error_description": {
"description": "Human-readable description of the error.",
"type": "string"
},
"interval": {
"description": "The minimum polling interval in seconds.",
"type": "number"
}
},
"x-stainless-model":
"client_auth.oauth_token_device_code_pending_error"
}Fields§
§error: OAuthTokenDeviceCodePendingErrorErrorThe error code indicating why the token request failed.
error_description: Option<String>Human-readable description of the error.
interval: Option<f64>Trait Implementations§
Source§impl Clone for OAuthTokenDeviceCodePendingError
impl Clone for OAuthTokenDeviceCodePendingError
Source§fn clone(&self) -> OAuthTokenDeviceCodePendingError
fn clone(&self) -> OAuthTokenDeviceCodePendingError
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 OAuthTokenDeviceCodePendingError
impl<'de> Deserialize<'de> for OAuthTokenDeviceCodePendingError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthTokenDeviceCodePendingError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OAuthTokenDeviceCodePendingError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&OAuthTokenDeviceCodePendingError> for OAuthTokenDeviceCodePendingError
impl From<&OAuthTokenDeviceCodePendingError> for OAuthTokenDeviceCodePendingError
Source§fn from(
value: &OAuthTokenDeviceCodePendingError,
) -> OAuthTokenDeviceCodePendingError
fn from( value: &OAuthTokenDeviceCodePendingError, ) -> OAuthTokenDeviceCodePendingError
Converts to this type from the input type.
Source§impl Serialize for OAuthTokenDeviceCodePendingError
impl Serialize for OAuthTokenDeviceCodePendingError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OAuthTokenDeviceCodePendingError
impl RefUnwindSafe for OAuthTokenDeviceCodePendingError
impl Send for OAuthTokenDeviceCodePendingError
impl Sync for OAuthTokenDeviceCodePendingError
impl Unpin for OAuthTokenDeviceCodePendingError
impl UnsafeUnpin for OAuthTokenDeviceCodePendingError
impl UnwindSafe for OAuthTokenDeviceCodePendingError
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