pub struct EndpointInfo {
pub method: &'static str,
pub path: &'static str,
pub name: String,
pub description: String,
pub category: String,
pub authorization: &'static [AuthorizeRule],
}Expand description
One endpoint with its name and description resolved for a culture.
This is the serializable shape for external systems. Permissions should be
keyed on (method, path), which is the route pattern runtime authorization
already sees.
Fields§
§method: &'static strCanonical upper-case HTTP method.
path: &'static strThe declared route pattern.
name: StringResolved endpoint name.
description: StringResolved endpoint description.
category: StringResolved grouping label; empty when the endpoint is uncategorized.
The #[authorize] rule list, unchanged.
Trait Implementations§
Source§impl Clone for EndpointInfo
impl Clone for EndpointInfo
Source§fn clone(&self) -> EndpointInfo
fn clone(&self) -> EndpointInfo
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 EndpointInfo
impl Debug for EndpointInfo
Source§impl PartialEq for EndpointInfo
impl PartialEq for EndpointInfo
Source§impl Serialize for EndpointInfo
impl Serialize for EndpointInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EndpointInfo
Auto Trait Implementations§
impl Freeze for EndpointInfo
impl RefUnwindSafe for EndpointInfo
impl Send for EndpointInfo
impl Sync for EndpointInfo
impl Unpin for EndpointInfo
impl UnsafeUnpin for EndpointInfo
impl UnwindSafe for EndpointInfo
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