stelae 0.3.2

A collection of tools in Rust and Python for preserving, authenticating, and accessing laws in perpetuity.
Documentation
use async_trait::async_trait;
use serde::{Deserialize, Serialize};

pub mod manager;

/// Trait for managing transactional stele.
#[async_trait]
pub trait TxManager {
    /// Create a stele.
    async fn create(&mut self, stele: &str) -> anyhow::Result<Option<i64>>;
}

#[derive(sqlx::FromRow, Deserialize, Serialize)]
/// Model for a Stele.
pub struct Stele {
    /// Stele identifier in <org>/<name> format.
    /// Example: `org-name/repo-name-law`.
    pub name: String,
}