Product Control Contract (src/product_control.rs)

OpenBitFun · src/crates/contracts/product-domains/src/product_control.rs · rust · MIT
pos, integration, lang:rust, tag:contracts, tag:validation, tag:discovery, tag:product

Defines stable DTOs, lookup/search behavior, and input validation for controlling OpenBitFun products, enabling discovery and capability management.

// Source: https://github.com/GCWing/OpenBitFun | License: MIT | Copyright 2026 CWing
// Provided via justclaw.it.com; keep this notice with the code.
//! Platform-agnostic contracts and discovery policy for controlling OpenBitFun itself.
//!
//! The resolved graph is generated from owner facts plus the same explanatory
//! overlay used by the Playbook and global search. Concrete providers live in
//! product hosts; this module owns stable DTOs, lookup/search behavior, and
//! input-shape validation. It deliberately does not expose an arbitrary config
//! path or Tauri-command gateway.

use std::collections::BTreeMap;
use std::future::Future;
use std::pin::Pin;
use std::sync::OnceLock;

use serde::{Deserialize, Serialize};
use serde_json::{json, Map, Value};

const GENERATED_CATALOG: &str 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key