feat: alter unsafe packages

This commit is contained in:
2025-05-23 02:54:53 +08:00
parent f1d8318500
commit 0fcbc6bbe9
15 changed files with 470 additions and 405 deletions

View File

@@ -128,6 +128,12 @@ impl DynamicGraphqlInfo {
}
}
impl From<#enum_name> for String {
fn from(value: #enum_name) -> Self {
value.as_str().to_string()
}
}
impl std::str::FromStr for #enum_name {
type Err = String;