pub struct RedeemBody {
pub code: String,
}Expand description
Request body for POST /api/v1/auth/cli/redeem.
Carries the grant code that the user pasted from the browser into the CLI. Whitespace and case-folding are tolerated server-side.
JSON schema
{
"description": "Request body for `POST /api/v1/auth/cli/redeem`.\n\nCarries the grant code that the user pasted from the browser into\nthe CLI. Whitespace and case-folding are tolerated server-side.",
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"description": "The grant code displayed by the browser. Whitespace, dashes,\nand case differences are normalized away (server uppercases and\nstrips non-alphanumerics) before lookup; submit it however the\nuser typed it.",
"type": "string"
}
},
"additionalProperties": false
}Fields§
§code: StringThe grant code displayed by the browser. Whitespace, dashes, and case differences are normalized away (server uppercases and strips non-alphanumerics) before lookup; submit it however the user typed it.
Trait Implementations§
Source§impl Clone for RedeemBody
impl Clone for RedeemBody
Source§fn clone(&self) -> RedeemBody
fn clone(&self) -> RedeemBody
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 RedeemBody
impl Debug for RedeemBody
Source§impl<'de> Deserialize<'de> for RedeemBody
impl<'de> Deserialize<'de> for RedeemBody
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 RedeemBody
impl RefUnwindSafe for RedeemBody
impl Send for RedeemBody
impl Sync for RedeemBody
impl Unpin for RedeemBody
impl UnsafeUnpin for RedeemBody
impl UnwindSafe for RedeemBody
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