pub struct User {
pub id: Uuid,
pub email: String,
pub is_active: bool,
pub is_superuser: bool,
pub tenant_id: Option<Uuid>,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
A registered user. Corresponds to Python cognee.modules.users.models.User.
Fields intentionally omit hashed_password – the Rust SDK does not
implement authentication (see non-goal note in the gap doc). Password
handling is delegated to whatever HTTP/auth layer sits on top.
Fields§
§id: Uuid§email: String§is_active: bool§is_superuser: bool§tenant_id: Option<Uuid>The user’s currently-selected tenant (can be None for the
single-user default tenant).
created_at: DateTime<Utc>§updated_at: Option<DateTime<Utc>>Trait 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
impl Eq for User
impl StructuralPartialEq for User
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