pub struct ExchangeAuthCodeResponse {
pub key: String,
pub user_id: Option<String>,
}Expand description
Response from POST /auth/keys.
Fields§
§key: StringThe newly-issued API key. Stored only once — capture it immediately.
user_id: Option<String>Owning user id, when returned.
Trait Implementations§
Source§impl Clone for ExchangeAuthCodeResponse
impl Clone for ExchangeAuthCodeResponse
Source§fn clone(&self) -> ExchangeAuthCodeResponse
fn clone(&self) -> ExchangeAuthCodeResponse
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 ExchangeAuthCodeResponse
impl Debug for ExchangeAuthCodeResponse
Source§impl Default for ExchangeAuthCodeResponse
impl Default for ExchangeAuthCodeResponse
Source§fn default() -> ExchangeAuthCodeResponse
fn default() -> ExchangeAuthCodeResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExchangeAuthCodeResponse
impl<'de> Deserialize<'de> for ExchangeAuthCodeResponse
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 PartialEq for ExchangeAuthCodeResponse
impl PartialEq for ExchangeAuthCodeResponse
Source§impl Serialize for ExchangeAuthCodeResponse
impl Serialize for ExchangeAuthCodeResponse
impl StructuralPartialEq for ExchangeAuthCodeResponse
Auto Trait Implementations§
impl Freeze for ExchangeAuthCodeResponse
impl RefUnwindSafe for ExchangeAuthCodeResponse
impl Send for ExchangeAuthCodeResponse
impl Sync for ExchangeAuthCodeResponse
impl Unpin for ExchangeAuthCodeResponse
impl UnsafeUnpin for ExchangeAuthCodeResponse
impl UnwindSafe for ExchangeAuthCodeResponse
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