Something went wrong. Try again.
A simple to-do app focused on tasks that can be completed within a specific time span.
Something went wrong. Try again.
Rust
123456789101112131415161718192021222324252627282930pub mod categories;pub mod events;pub mod organization;pub mod tags;pub mod todos;pub mod webpush;
#[derive(Clone, Debug)]pub struct User { uuid: String, org: Option<String>,}
impl User { #[must_use] pub fn new(uuid: String, org: Option<String>) -> User { User { uuid, org } }
#[must_use] pub fn id(&self) -> &str { self.org.as_ref().unwrap_or(&self.uuid) }
#[must_use] pub fn user_id(&self) -> &str { &self.uuid }}