1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/// Represents an ID field in a SQL column or GraphQL schema.s
pub struct IdCol;
impl IdCol {
    pub fn to_lowercase_string() -> String {
        "id".to_string()
    }

    pub fn to_lowercase_str() -> &'static str {
        "id"
    }

    pub fn to_uppercase_string() -> String {
        "ID".to_string()
    }

    pub fn to_uppercase_str() -> &'static str {
        "ID"
    }
}

/// Represents a `TypeDefinition`s `object` field.
pub struct ObjectCol;
impl ObjectCol {
    pub fn to_lowercase_string() -> String {
        "object".to_string()
    }

    pub fn to_lowercase_str() -> &'static str {
        "object"
    }

    pub fn to_string() -> String {
        "Object".to_string()
    }

    pub fn to_str() -> &'static str {
        "Object"
    }
}