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
52
53
54
//! Resource identifier trait for generating unique resource IDs.
//!
//! WHY: Resources need unique IDs for state tracking, but the ID format
//! varies by API and operation. Some use output fields, some use
//! input fields, some combine both.
//!
//! WHAT: Trait implemented by output types, with associated input type,
//! providing a method to generate the resource ID from both.
//!
//! HOW: `Generator` analyzes `OpenAPI` spec to determine ID pattern for each
//! endpoint and generates appropriate trait implementations.
use Debug;
/// Trait for generating unique resource identifiers.
///
/// Implemented by output types to generate resource IDs from input/output pairs.
/// The `code generator` automatically creates implementations based on `OpenAPI` specs.
/// Helper function to compute resource info using `ResourceIdentifier` trait.
///
/// Used by `StoreStateTaskWithResourceIdentifier` to extract all resource info
/// from the output and input in one call.