fluffyf/api/
tags.rs

1// Copyright 2024 Ezra Alvarion
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-Apache or
4// https://www.apache.org/licenses/LICENSE-2.0> or the BSD 2-Clause 
5// License <LICENSE-BSD or https://opensource.org/license/bsd-2-clause/>,
6// at Your option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9use serde::Deserialize;
10
11pub const TAGS_URL: &'static str = "tags.json";
12
13#[derive(Debug, PartialEq, Eq)]
14pub enum Kind {
15    GENERAL = 0,
16    ARTIST,
17    COPYRIGHT,
18    CHARACTER,
19    SPECIES,
20    INVALID,
21    META,
22    LORE = 8,
23}
24
25pub type TagType = Vec<String>;
26
27#[derive(Debug, Deserialize)]
28pub struct Tags {
29    pub general: TagType,
30    pub artist: TagType,
31    pub copyright: TagType,
32    pub character: TagType,
33    pub species: TagType,
34    pub invalid: TagType,
35    pub meta: TagType,
36    pub lore: TagType,
37}
38
39pub struct TagQuery {
40
41}
42
43pub struct TagAliasQuery {
44    
45}
46
47impl Tags {
48    
49}