chore: update to new getty API

This commit is contained in:
LordMZTE 2023-01-03 19:32:14 +01:00
parent aef6ee81aa
commit 45675cafa3
Signed by: LordMZTE
GPG Key ID: B64802DC33A64FF6
1 changed files with 2 additions and 10 deletions

View File

@ -48,11 +48,7 @@ pub fn newCurl() !*c.CURL {
pub const VersionFile = struct {
tarball: [:0]const u8,
pub const @"getty.dbt" = struct {
pub fn is(comptime T: type) bool {
return T == VersionFile;
}
pub const @"getty.db" = struct {
pub const attributes = .{
.Container = .{ .ignore_unknown_fields = true },
};
@ -65,11 +61,7 @@ pub const Version = struct {
file: ?VersionFile = null,
pub const @"getty.dbt" = struct {
pub fn is(comptime T: type) bool {
return T == Version;
}
pub const @"getty.db" = struct {
pub const attributes = .{
.Container = .{ .ignore_unknown_fields = true },
.file = .{