pub enum PathParameter<'app> {
Aggregate(&'app Aggregate),
Reference {
module: &'app Module,
aggregate: &'app Aggregate,
},
Value(String),
Rest,
}Expand description
What a route builder takes for a path parameter: what a handler can read from it.
Variants§
Aggregate(&'app Aggregate)
Loaded by sofie-db’s bind.
Reference
A parent’s id held by a field, which children and listings are kept within.
Value(String)
Another field’s value, which a listing filters by, typed as a contract names it.
Rest
{*rest}, the rest of the path with its slashes.
Trait Implementations§
Source§impl<'app> Clone for PathParameter<'app>
impl<'app> Clone for PathParameter<'app>
Auto Trait Implementations§
impl<'app> Forget for PathParameter<'app>
impl<'app> Freeze for PathParameter<'app>
impl<'app> RefUnwindSafe for PathParameter<'app>
impl<'app> Send for PathParameter<'app>
impl<'app> Sync for PathParameter<'app>
impl<'app> Unpin for PathParameter<'app>
impl<'app> UnsafeUnpin for PathParameter<'app>
impl<'app> UnwindSafe for PathParameter<'app>
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