1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Resource info trait for computing resource identifiers from input types.
//!
//! WHY: Provider methods need to compute resource IDs, kinds, and providers
//! from input types without needing an output instance.
//!
//! WHAT: Trait with static methods implemented by generated helper structs
//! for each endpoint.
//!
//! HOW: Code generator analyzes `OpenAPI` specs to determine resource ID patterns
//! and generates implementations for each endpoint.
/// Trait for computing resource information from input types.
///
/// Implemented by generated helper structs for each API endpoint.
/// The code generator creates these helpers based on `OpenAPI` specs.
///
/// # Type Parameters
///
/// * `Input` - The input/args type for this endpoint
/// Helper function to compute resource info using `ResourceInfo` trait.
///
/// Used by provider methods to extract all resource info from input in one call.