id: i64, name: []const u8, pub const User = @This(); pub fn init(allocator: Allocator, id: i64, name: []const u8) !User { return .{ .id = id, .name = try allocator.dupe(u8, name), }; } const Allocator = @import("std").mem.Allocator;