Module pastemyst::data[][src]

This is the data module that can be used for general purposes

API Docs

The relevent API documentation for this module is: https://paste.myst.rs/api-docs/data

Modules

language

An enum of PasteMyt language constants.

Structs

DataObject

Functions

get_language_by_extension

The same thing as getting a language by a name, except that it is by extension, of a given language. This is a synchronous method.

get_language_by_extension_async

The same thing as getting a language by a name, except that it is by extension, of a given language. This is an asynchronous method.

get_language_by_name

Get information on a specific language supported by PasteMyst. You are recommened to only use the language names provided within pastemyst::data::language to prevent panicking. This method is synchronous.

get_language_by_name_async

Get information on a specific language supported by PasteMyst. You are recommened to only use the language names provided within pastemyst::data::language to prevent panicking. This method is asynchronous.

Type Definitions

DataResult