eros-nft 0.2.0

Reference implementation of the eros-nft v1 spec: types, validators, sample loader, and CLI for Solana persona NFT cards.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Embedded JSON Schema 2020-12 documents for `PersonaDraft` and `PersonaManifest`.
//!
//! These are the same files served at `spec/v1.0/schemas/*.json` in the repo.

const DRAFT_SCHEMA: &str = include_str!("../spec/v1.0/schemas/persona-draft.schema.json");
const MANIFEST_SCHEMA: &str = include_str!("../spec/v1.0/schemas/persona-manifest.schema.json");

/// Returns the embedded `PersonaDraft` JSON Schema 2020-12 document.
pub fn json_schema_draft() -> &'static str {
    DRAFT_SCHEMA
}

/// Returns the embedded `PersonaManifest` JSON Schema 2020-12 document.
pub fn json_schema_manifest() -> &'static str {
    MANIFEST_SCHEMA
}