pub struct ProjectRef {
pub layout: Layout,
pub dir: String,
pub key: String,
}Expand description
One project as the router names it: the layout to read, the directory under that layout’s prefix, and the route key the caller used.
Fields§
§layout: LayoutTracker that holds the file.
dir: StringDirectory name under layout.prefix(), which is also the id prefix.
key: StringRoute key or, when unrouted, the same string as dir.
Trait Implementations§
Source§impl Clone for ProjectRef
impl Clone for ProjectRef
Source§fn clone(&self) -> ProjectRef
fn clone(&self) -> ProjectRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProjectRef
impl Debug for ProjectRef
impl Eq for ProjectRef
Source§impl PartialEq for ProjectRef
impl PartialEq for ProjectRef
impl StructuralPartialEq for ProjectRef
Auto Trait Implementations§
impl Freeze for ProjectRef
impl RefUnwindSafe for ProjectRef
impl Send for ProjectRef
impl Sync for ProjectRef
impl Unpin for ProjectRef
impl UnsafeUnpin for ProjectRef
impl UnwindSafe for ProjectRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.