Struct saphir::http_context::HandlerMetadata
source · pub struct HandlerMetadata {
pub route_id: RouteId,
pub name: Option<&'static str>,
}
Expand description
MetaData of the resolved request handler
Fields§
§route_id: RouteId
§name: Option<&'static str>
Trait Implementations§
source§impl Clone for HandlerMetadata
impl Clone for HandlerMetadata
source§fn clone(&self) -> HandlerMetadata
fn clone(&self) -> HandlerMetadata
Returns a copy of the value. Read more
1.0.0 · 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 HandlerMetadata
impl Debug for HandlerMetadata
source§impl Default for HandlerMetadata
impl Default for HandlerMetadata
source§fn default() -> HandlerMetadata
fn default() -> HandlerMetadata
Returns the “default value” for a type. Read more
source§impl PartialEq<HandlerMetadata> for HandlerMetadata
impl PartialEq<HandlerMetadata> for HandlerMetadata
source§fn eq(&self, other: &HandlerMetadata) -> bool
fn eq(&self, other: &HandlerMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HandlerMetadata
impl StructuralEq for HandlerMetadata
impl StructuralPartialEq for HandlerMetadata
Auto Trait Implementations§
impl RefUnwindSafe for HandlerMetadata
impl Send for HandlerMetadata
impl Sync for HandlerMetadata
impl Unpin for HandlerMetadata
impl UnwindSafe for HandlerMetadata
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.