pub struct CompilableRoute {
pub id: String,
pub method: HttpMethod,
pub path: String,
pub name: Option<String>,
pub metadata: HashMap<String, String>,
}
Expand description
A single route definition for compilation
Fields§
§id: String
§method: HttpMethod
§path: String
§name: Option<String>
§metadata: HashMap<String, String>
Implementations§
Trait Implementations§
Source§impl Clone for CompilableRoute
impl Clone for CompilableRoute
Source§fn clone(&self) -> CompilableRoute
fn clone(&self) -> CompilableRoute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CompilableRoute
impl RefUnwindSafe for CompilableRoute
impl Send for CompilableRoute
impl Sync for CompilableRoute
impl Unpin for CompilableRoute
impl UnwindSafe for CompilableRoute
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