fn from()

in api_generator/src/generator/code_gen/url/enum_builder.rs [299:307]


    fn from(value: &'a (String, ApiEndpoint)) -> Self {
        let endpoint = &value.1;
        let mut builder = EnumBuilder::new(value.0.to_pascal_case().as_ref());
        for path in &endpoint.url.paths {
            builder = builder.with_path(path);
        }

        builder
    }