pub struct RouterArgs {
pub state: Option<Expr>,
pub pattern: Option<Pattern>,
}Expand description
Parsed arguments for the router!(...) macro.
Both arguments are optional and may appear in any order.
Fields§
§state: Option<Expr>§pattern: Option<Pattern>Trait Implementations§
Source§impl Debug for RouterArgs
impl Debug for RouterArgs
Source§impl Parse for RouterArgs
impl Parse for RouterArgs
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl !Send for RouterArgs
impl !Sync for RouterArgs
impl Freeze for RouterArgs
impl RefUnwindSafe for RouterArgs
impl Unpin for RouterArgs
impl UnsafeUnpin for RouterArgs
impl UnwindSafe for RouterArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more