nostralink 0.1.9

Linked data library for nostr
Documentation
use strum_macros::{AsRefStr, Display, EnumString};

// SparQL variable names used in the queries
#[derive(Display, Debug, PartialEq, EnumString, AsRefStr)]
pub enum SPVars {
    content,
    content_type,
    created_at,
    event,
    event_id,
    pubk,
}

// SparQL variable names used in the queries
pub const BODY: &'static str = "body";
pub const EVENT: &'static str = "event";
pub const EVENT_ID: &'static str = "event_id";
pub const KIND: &'static str = "kind";
pub const SIG: &'static str = "sig";
pub const PUBK: &'static str = "pubk";
pub const CREATED_AT: &'static str = "created_at";
pub const CONTENT_TYPE: &'static str = "content_type";
pub const CONTENT: &'static str = "content";
pub const METADATA_ABOUT: &'static str = "metadata_about";
pub const METADATA_NAME: &'static str = "metadata_name";
pub const METADATA_DISPLAY_NAME: &'static str = "metadata_display_name";
pub const METADATA_PICTURE: &'static str = "metadata_picture";
pub const PICTURE: &'static str = "picture";
pub const BANNER: &'static str = "banner";
pub const ABOUT: &'static str = "about";
pub const NAME: &'static str = "name";
pub const DISPLAY_NAME: &'static str = "display_name";
pub const PRIMARY_LANG_TAG: &'static str = "primary_lang_tag";
pub const SECONDARY_LANG_TAG: &'static str = "second_lang_tag";
pub const NIP21: &'static str = "nip21";

pub const TAG_LETTER: &'static str = "tag_letter";
pub const TAG_VALUE_0: &'static str = "tag_value_0";
pub const TAG_VALUE_1: &'static str = "tag_value_1";
pub const TAG_VALUE_2: &'static str = "tag_value_2";
pub const TAG_VALUE_3: &'static str = "tag_value_3";

/// Event states
pub const EVENT_SEEN_AT: &'static str = "event_seen_at";

/// Reposted event vars
pub const RP_EVENT: &'static str = "rp_event";
pub const RP_EVENT_ID: &'static str = "rp_event_id";
pub const RP_PUBK: &'static str = "rp_pubk";
pub const RP_CREATED_AT: &'static str = "rp_created_at";
pub const RP_CONTENT_TYPE: &'static str = "rp_content_type";
pub const RP_CONTENT: &'static str = "rp_content";