pub struct PageRoute<'r, A: Area> { /* private fields */ }Implementations§
Source§impl<'r, A: Area> PageRoute<'r, A>
impl<'r, A: Area> PageRoute<'r, A>
Sourcepub fn name(&mut self, handler: &str) -> &mut Self
pub fn name(&mut self, handler: &str) -> &mut Self
For a library’s route: named module.area.handler like those sofie gen names.
Sourcepub fn name_for<Member: Area>(&mut self, handler: &str) -> &mut Self
pub fn name_for<Member: Area>(&mut self, handler: &str) -> &mut Self
For a library’s route serving Member’s members from this area, as sign-in serves each
member area from Web.
Sourcepub fn throttle(&mut self, rate: Rate) -> &mut Self
pub fn throttle(&mut self, rate: Rate) -> &mut Self
Per principal, or per client address without one.
pub fn signed(&mut self) -> &mut Self
Sourcepub fn feature(&mut self, feature: Feature) -> &mut Self
pub fn feature(&mut self, feature: Feature) -> &mut Self
Not found while feature is off, so a hidden feature is not revealed.
Sourcepub fn entitled(&mut self, entitlement: Entitlement) -> &mut Self
pub fn entitled(&mut self, entitlement: Entitlement) -> &mut Self
Refused with 403 to a principal whose plan does not hold entitlement.
Source§impl<A: Area> PageRoute<'_, A>
impl<A: Area> PageRoute<'_, A>
Sourcepub fn cached(&mut self, time: Duration) -> &mut Self
pub fn cached(&mut self, time: Duration) -> &mut Self
Reuses the loader’s reply for the same path, query, reach and principal for at most time
(an hour at most), dropping it once a record it read changes. Only for a loader
whose reply depends on nothing else: not on flags, permissions or the clock.
Trait Implementations§
Source§impl<A: Area> NeedsPermission for PageRoute<'_, A>
impl<A: Area> NeedsPermission for PageRoute<'_, A>
fn permission(&mut self, permission: Permission) -> &mut Self
Auto Trait Implementations§
impl<'r, A> !RefUnwindSafe for PageRoute<'r, A>
impl<'r, A> !UnwindSafe for PageRoute<'r, A>
impl<'r, A> Forget for PageRoute<'r, A>
impl<'r, A> Freeze for PageRoute<'r, A>
impl<'r, A> Send for PageRoute<'r, A>
impl<'r, A> Sync for PageRoute<'r, A>
impl<'r, A> Unpin for PageRoute<'r, A>
impl<'r, A> UnsafeUnpin for PageRoute<'r, A>
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