pub struct ResourceDescriptor {Show 14 fields
pub class: ResourceClass,
pub resource_id: String,
pub name: String,
pub version: String,
pub description: String,
pub category: String,
pub capabilities: Vec<String>,
pub creator_did: Option<String>,
pub creator_wallet: Option<Address>,
pub price_per_call: u128,
pub is_available: bool,
pub last_seen_at: u64,
pub subtype: Option<String>,
pub reputation: Option<u64>,
}Expand description
Cross-registry projection of a single resource.
Fields§
§class: ResourceClassWhich registry this resource lives in.
resource_id: StringUnique id in the source registry. Caller passes this back to
tenzro_useResource(resource_id, params) for invocation.
name: String§version: String§description: String§category: String§capabilities: Vec<String>Capability tags lifted from the source registry. Used for the
post-filter on tenzro_listResources(capability_tags=...).
creator_did: Option<String>§creator_wallet: Option<Address>Operator payout wallet. Tenants pay TNZO; the protocol splits 5% to treasury, 95% to this wallet.
price_per_call: u128Per-invocation cost in atto-TNZO. 0 = free.
is_available: booltrue when the resource is Active in the source registry.
last_seen_at: u64Last liveness heartbeat (seconds). Helps the discovery layer surface staleness without filtering aggressively.
subtype: Option<String>Optional kind / sub-type from the source registry, projected
as a plain string. E.g. for Tool this is the transport mode
(mcp / mcp-stdio / mcp-sse / api / native); for
Knowledge this is the kind (vector_index / feed / …).
reputation: Option<u64>Reputation score (0..=1000). None when the source registry
doesn’t track reputation (only Models do today).
Trait Implementations§
Source§impl Clone for ResourceDescriptor
impl Clone for ResourceDescriptor
Source§fn clone(&self) -> ResourceDescriptor
fn clone(&self) -> ResourceDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more