> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# parse_schema

> parse_schema — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[avro](https://docs.kinetica.com/content/api/rust/avro/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/avro.rs#L144-L147)&#x20;

<pre>`pub fn parse_schema(schema_str: &str) -> Result<Schema, KineticaError>`</pre>

Parses a schema string into a serde\_avro\_fast Schema.This is a convenience function for parsing schema strings returned by Kinetica’s `type_schema` field.

## Example

```rust theme={null}
use gpudb_api::avro::parse_schema;

let schema = parse_schema(&response.type_schema)?;
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.