pub struct User {
pub bio: Option<String>,
pub created_at: DateTime<Utc>,
pub display_name: Option<String>,
pub email: Option<String>,
pub id: Uuid,
pub updated_at: DateTime<Utc>,
pub username: String,
}Expand description
A registered Pathbase account. email is optional because GitHub
OAuth users can have a private email; CLI / API consumers see the
caller’s own email via /u/me but never another user’s.
JSON schema
{
"description": "A registered Pathbase account. `email` is optional because GitHub\nOAuth users can have a private email; CLI / API consumers see the\ncaller's own email via `/u/me` but never another user's.",
"type": "object",
"required": [
"created_at",
"id",
"updated_at",
"username"
],
"properties": {
"bio": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"format": "date-time"
},
"display_name": {
"type": [
"string",
"null"
]
},
"email": {
"description": "Caller's own email. Populated only by `GET /api/v1/u/me` (the\nauthenticated self-read). The public profile endpoint\n`GET /api/v1/u/{username}` always returns `null` here; emails\nare never exposed across users.",
"type": [
"string",
"null"
]
},
"id": {
"type": "string",
"format": "uuid"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"username": {
"type": "string"
}
}
}Fields§
§bio: Option<String>§created_at: DateTime<Utc>§display_name: Option<String>§email: Option<String>Caller’s own email. Populated only by GET /api/v1/u/me (the
authenticated self-read). The public profile endpoint
GET /api/v1/u/{username} always returns null here; emails
are never exposed across users.
id: Uuid§updated_at: DateTime<Utc>§username: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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 User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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