pub struct UserSettingsResponse {
pub user_id: String,
pub nickname: String,
pub api_key: String,
pub created_at: String,
pub email: Option<String>,
pub avatar_url: Option<String>,
pub oauth_providers: Vec<LinkedProvider>,
pub github_username: Option<String>,
}Expand description
Full user profile returned by GET /api/auth/me.
Fields§
§user_id: String§nickname: String§api_key: String§created_at: String§email: Option<String>§avatar_url: Option<String>§oauth_providers: Vec<LinkedProvider>Linked OAuth providers (generic — replaces github_username)
github_username: Option<String>Legacy: GitHub username (populated from oauth_providers for backward compat)
Trait Implementations§
Source§impl Debug for UserSettingsResponse
impl Debug for UserSettingsResponse
Source§impl<'de> Deserialize<'de> for UserSettingsResponse
impl<'de> Deserialize<'de> for UserSettingsResponse
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 UserSettingsResponse
impl RefUnwindSafe for UserSettingsResponse
impl Send for UserSettingsResponse
impl Sync for UserSettingsResponse
impl Unpin for UserSettingsResponse
impl UnwindSafe for UserSettingsResponse
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