pub struct EndpointDescriptor {
pub method: &'static str,
pub path: &'static str,
pub name: TextRef,
pub description: TextRef,
pub category: TextRef,
pub authorization: &'static [AuthorizeRule],
}Expand description
One endpoint’s language-neutral metadata.
Fields§
§method: &'static strCanonical upper-case HTTP method ("GET", "POST", …).
path: &'static strThe route pattern exactly as declared in the macro, e.g.
/api/blog/{slug}. This is the original string — not normalized and not
the concrete request path.
name: TextRefResource reference for the endpoint name.
description: TextRefResource reference for the endpoint description.
category: TextRefOptional grouping label, a resource reference. Empty = uncategorized.
Every #[authorize] rule, in declaration order; empty = public.
Trait Implementations§
Source§impl Clone for EndpointDescriptor
impl Clone for EndpointDescriptor
Source§fn clone(&self) -> EndpointDescriptor
fn clone(&self) -> EndpointDescriptor
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 moreimpl Copy for EndpointDescriptor
Source§impl Debug for EndpointDescriptor
impl Debug for EndpointDescriptor
impl Eq for EndpointDescriptor
Source§impl PartialEq for EndpointDescriptor
impl PartialEq for EndpointDescriptor
Source§impl Serialize for EndpointDescriptor
impl Serialize for EndpointDescriptor
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 EndpointDescriptor
Auto Trait Implementations§
impl Freeze for EndpointDescriptor
impl RefUnwindSafe for EndpointDescriptor
impl Send for EndpointDescriptor
impl Sync for EndpointDescriptor
impl Unpin for EndpointDescriptor
impl UnsafeUnpin for EndpointDescriptor
impl UnwindSafe for EndpointDescriptor
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.