pub enum RoutePosture {
Public {
reason: String,
},
Authenticated,
Permission {
area: String,
operation: String,
},
Owner {
field: String,
},
}Expand description
The authorization posture of a custom route, enforced by the platform so a guest handler cannot forget it.
Variants§
Public
Deliberately anonymous. reason is mandatory so every public route is
greppable and reviewable (third-party webhooks, signup, public profiles).
Authenticated
Any authenticated tenant principal.
Permission
Authenticated and holding the {area}:{operation} permission.
Owner
Authenticated; the guest scopes the operation to rows whose field
equals the caller’s subject. The platform enforces authentication.
Implementations§
Source§impl RoutePosture
impl RoutePosture
Trait Implementations§
Source§impl Clone for RoutePosture
impl Clone for RoutePosture
Source§fn clone(&self) -> RoutePosture
fn clone(&self) -> RoutePosture
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 RoutePosture
impl Debug for RoutePosture
Source§impl<'de> Deserialize<'de> for RoutePosture
impl<'de> Deserialize<'de> for RoutePosture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoutePosture
Source§impl PartialEq for RoutePosture
impl PartialEq for RoutePosture
Source§impl Serialize for RoutePosture
impl Serialize for RoutePosture
impl StructuralPartialEq for RoutePosture
Auto Trait Implementations§
impl Freeze for RoutePosture
impl RefUnwindSafe for RoutePosture
impl Send for RoutePosture
impl Sync for RoutePosture
impl Unpin for RoutePosture
impl UnsafeUnpin for RoutePosture
impl UnwindSafe for RoutePosture
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