pub struct RequestParamEntry {
pub request_type: &'static str,
pub req_type_id: TypeId,
pub params: &'static [ParamMeta],
}Expand description
Optional query/path/body metadata for a request type, collected via
#[derive(WebxRequestMeta)] on the request struct.
Fields§
§request_type: &'static strRequest type name, kept for diagnostics and for the legacy name lookup.
The bare name is not unique (qualified paths, same-named types in
different modules), so consumers must prefer Self::req_type_id.
req_type_id: TypeIdCompile-time identity of the request type — the authoritative key.
The derive is the only producer of real values. Hand-written entries can
use TypeId::of::<()>() as the “unknown” sentinel and fall back to the
name.
params: &'static [ParamMeta]Trait Implementations§
Source§impl Clone for RequestParamEntry
impl Clone for RequestParamEntry
impl Collect for RequestParamEntry
Auto Trait Implementations§
impl Forget for RequestParamEntry
impl Freeze for RequestParamEntry
impl Move for RequestParamEntry
impl RefUnwindSafe for RequestParamEntry
impl Send for RequestParamEntry
impl Sync for RequestParamEntry
impl Unpin for RequestParamEntry
impl UnsafeUnpin for RequestParamEntry
impl UnwindSafe for RequestParamEntry
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