Structs§
Enums§
- Error
- Image
Type - Json
Type - This enum is solely for error messages.
- Message
Content - PdlRole
- Role
- Schema
Parse Error
Functions§
- decode_
base64 - encode_
base64 - escape_
pdl_ tokens - into_
context parse_pdltakestera::Contextas an input. If you’re too lazy to construct atera::Context, you can use this function. It converts a rust struct into a json object.- parse_
pdl - parse_
pdl_ from_ file - parse_
schema - render_
pdl_ schema - pdl schema is a bit unintuitive when you’re using non-json schema.
For example, schema
yesnowill becomeValue::Bool. If you naively convert this to a string, you’ll get “true” or “false”, not “yes” or “no”. - unescape_
pdl_ tokens