{"record":{"id":"56e707768190996c","repo":"DioxusLabs/dioxus","slug":"query-segments-should-be-a-followed-by-the-name","errorCode":null,"errorMessage":"Query segments should be a : followed by the name of the query argument","messagePattern":"Query segments should be a : followed by the name of the query argument","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"packages/router-macro/src/query.rs","lineNumber":101,"sourceCode":"                if let Some(query_argument) = segment.strip_prefix(':') {\n                    let query_ident = Ident::new(query_argument, proc_macro2::Span::call_site());\n                    let field = fields.find(|(name, _)| *name == &query_ident);\n\n                    let ty = if let Some((_, ty)) = field {\n                        ty.clone()\n                    } else {\n                        return Err(syn::Error::new(\n                            route_span,\n                            format!(\"Could not find a field with the name '{}'\", query_ident),\n                        ));\n                    };\n\n                    query_arguments.push(QueryArgument {\n                        ident: query_ident,\n                        ty,\n                    });\n                } else {\n                    return Err(syn::Error::new(\n                        route_span,\n                        \"Query segments should be a : followed by the name of the query argument\",\n                    ));\n                }\n            }\n            Ok(QuerySegment::Segments(query_arguments))\n        }\n    }\n}\n\n#[derive(Debug)]\npub struct FullQuerySegment {\n    pub ident: Ident,\n    pub ty: Type,\n}\n\nimpl FullQuerySegment {\n    pub fn parse(&self) -> TokenStream2 {","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/393d190a801ccb441d41923e232289b4f8a5c669/packages/router-macro/src/query.rs#L83-L119","documentation":"Error \"Query segments should be a : followed by the name of the query argument\" thrown in DioxusLabs/dioxus.","triggerScenarios":"Thrown at packages/router-macro/src/query.rs:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"393d190a801ccb441d41923e232289b4f8a5c669","analyzedAt":"2026-08-16T11:27:45.815Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}