mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Add missing derives to yew_router's README (#1386)
This commit is contained in:
parent
2ca2085804
commit
679805439a
@ -4,7 +4,7 @@ A routing library for the [Yew](https://github.com/yewstack/yew) frontend framew
|
||||
|
||||
### Example
|
||||
```rust
|
||||
#[derive(Switch, Debug)]
|
||||
#[derive(Switch, Debug, Clone)]
|
||||
pub enum AppRoute {
|
||||
#[to = "/profile/{id}"]
|
||||
Profile(u32),
|
||||
@ -14,7 +14,7 @@ pub enum AppRoute {
|
||||
Index,
|
||||
}
|
||||
|
||||
#[derive(Switch, Debug)]
|
||||
#[derive(Switch, Debug, Clone)]
|
||||
pub enum ForumRoute {
|
||||
#[to = "/{subforum}/{thread_slug}"]
|
||||
SubForumAndThread{subforum: String, thread_slug: String}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user