Struct gdnative_bindings_generator::api::Api
source · pub struct Api {
pub classes: Vec<GodotClass>,
pub api_underscore: HashSet<String>,
}
Fields§
§classes: Vec<GodotClass>
§api_underscore: HashSet<String>
Implementations§
source§impl Api
impl Api
sourcepub fn new(data: &str) -> Self
pub fn new(data: &str) -> Self
Construct an Api
instance from JSON data.
The JSON data can be generated from Godot using the following command:
/path/to/godot --gdnative-generate-json-api /path/to/api.json
Panics
If the data
is not valid JSON data the function will panic.