objectiveai-sdk-macros 2.0.10

Procedural macros for the ObjectiveAI SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use proc_macro::TokenStream;

/// Marks a type's schema role in the Ref/Owned pattern.
///
/// Values: `Owned`, `Ref`, `RefOwnedEnum`
///
/// - `Owned`: The struct IS the canonical schema. Its `#[schemars(rename)]`
///   must equal the module path + type name with "Owned" stripped.
/// - `Ref`: The borrowed counterpart. Must NOT derive `JsonSchema`.
/// - `RefOwnedEnum`: The dispatch enum. Must NOT derive `JsonSchema`
///   (uses a manual impl delegating to the Owned variant).
#[proc_macro_attribute]
pub fn schema_override(_attr: TokenStream, item: TokenStream) -> TokenStream {
    item
}