2024-08-22 08:17:06 -04:00
|
|
|
// Copyright 2024 System76 <info@system76.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
|
|
|
|
|
|
use serde::{Deserialize, Serialize};
|
2025-09-16 13:08:16 +02:00
|
|
|
use std::num::NonZeroU32;
|
2024-08-22 08:17:06 -04:00
|
|
|
|
|
|
|
|
/// Per user state for Greeter.
|
|
|
|
|
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
|
|
|
|
|
pub struct UserState {
|
|
|
|
|
pub uid: NonZeroU32,
|
|
|
|
|
#[serde(skip_serializing_if = "Option::is_none")]
|
|
|
|
|
pub last_session: Option<String>,
|
|
|
|
|
}
|