dynamic-graphql-derive 0.10.2

Dynamic GraphQL schema macro
Documentation
1
2
3
4
5
6
7
8
9
10
pub trait MatchString: Sized {
    #[allow(dead_code)]
    fn match_string(str: &str) -> Option<darling::Result<Self>>;
}

impl MatchString for String {
    fn match_string(string: &str) -> Option<darling::Result<Self>> {
        Some(Ok(string.to_string()))
    }
}