Skip to main content

parse_binding

Function parse_binding 

Source
pub fn parse_binding(s: &str) -> Option<Binding>
Expand description

Parse a binding string like “@{state.user.name}” or “@{item.name}” into a Binding.

Only recognizes state.* and item.* bindings. Data source bindings (e.g., @spacetime.messages) come from the parser’s explicit @provider.path syntax, NOT from the @{...} template syntax. This prevents @{foo.bar} from silently becoming a data source binding when foo is just a typo or an expression variable.