trust-tasks-rs 0.36.0

Reference Rust library for the Trust Tasks framework — transport-agnostic, JSON-based descriptions of verifiable work between parties.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Generated by `trust-tasks-codegen` — do not edit by hand.
//!
//! Bare request Type URI → the `MAJOR.MINOR` its specification declares it
//! extends (SPEC §5.2 "Declared extension"). Read through
//! [`crate::extension::extends_for`].

/// The direct `extends` declaration of the specification behind the bare
/// request `type_uri`, or `None`.
pub(crate) fn declared_extends(type_uri: &str) -> Option<&'static str> {
    #[allow(clippy::match_single_binding)]
    match type_uri {
        _ => None,
    }
}