╭ changed ─────────╮ │src/event/User.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────╮ │10 email: []const u8, │ │11 password_hash: []const u8, │ │12 enable_ansi: bool = false, │ │13 + │ │14 +const Self = @This(); │ │15 + │ │16 +// the subset of a user that's safe to hand to clients │ │17 +pub const Safe = struct { │ │18 + name: []const u8, │ │19 + display_name: []const u8, │ │20 + │ │21 + pub fn init(user: Self) Safe { │ │22 + return .{ .name = user.name, .display_name = user.display_name };│ │23 + } │ │24 +}; │ │25 │ │26 pub fn consume( │ │27 comptime DB: type, │ ╰─────────────────────────────────────────────────────────────────────────────╯