╭ Repo.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
1 const std = @import("std"); 2 const evt = @import("../event.zig"); 3 const xit = @import("xit"); 4 const hash = xit.hash; 5 6 user_id: []const u8, 7 name: []const u8, 8 enable_issue: bool, 9 10 pub fn read( 11 comptime DB: type, 12 comptime hash_kind: hash.HashKind, 13 arena: *std.heap.ArenaAllocator, 14 map: DB.HashMap(.read_only), 15 ) !@This() { 16 return .{ 17 .user_id = try evt.readBytes(DB, hash_kind, arena.allocator(), map, "user_id"), 18 .name = try evt.readBytes(DB, hash_kind, arena.allocator(), map, "name"), 19 .enable_issue = try evt.readBool(DB, hash_kind, map, "enable_issue"), 20 }; 21 } 22