pub enum Intent {
Browse,
Focus,
Collect,
Process,
Summarize,
Analyze,
Track,
Custom(String),
}Expand description
Structurally-derivable intent classification for a service.
Intents answer “what IS this service?” based on its structural shape (fields, relationships, state machine), not “what can a user DO?”
Known variants are tried first during deserialization; any unrecognized
string falls through to Custom(String).
Custom(String) must remain the last variant for correct serde deserialization.
Variants§
Browse
Collection navigation: has_many relationships, EntityName fields.
Focus
Single-entity deep view: FreeText/ImageUrl/Url fields.
Collect
Data capture: many writable fields, write_only present.
Process
Workflow with state progression: guarded transitions.
Summarize
Overview dashboard: read-only Money/Percentage/Quantity fields.
Analyze
Time-series exploration: DateTime + numeric measures.
Track
Timeline/audit trail: Status + temporal ordering.
Custom(String)
Escape hatch for intents not structurally derivable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Intent
impl<'de> Deserialize<'de> for Intent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Intent
impl JsonSchema for Intent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more