pub struct AdmittedModernPost { /* private fields */ }Expand description
A fully admitted modern POST, ready for authentication and dispatch.
Implementations§
Source§impl AdmittedModernPost
impl AdmittedModernPost
Sourcepub const fn request(&self) -> &JsonRpcRequest
pub const fn request(&self) -> &JsonRpcRequest
Returns the validated JSON-RPC request.
Sourcepub const fn protocol_version(&self) -> FinalProtocolVersion
pub const fn protocol_version(&self) -> FinalProtocolVersion
Returns the admitted final protocol version.
Sourcepub const fn representation(&self) -> ResponseRepresentation
pub const fn representation(&self) -> ResponseRepresentation
Returns the representation selected from the request’s Accept.
Sourcepub fn into_request(self) -> JsonRpcRequest
pub fn into_request(self) -> JsonRpcRequest
Consumes the admission and yields the request for dispatch.
Trait Implementations§
Source§impl Clone for AdmittedModernPost
impl Clone for AdmittedModernPost
Source§fn clone(&self) -> AdmittedModernPost
fn clone(&self) -> AdmittedModernPost
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 moreAuto Trait Implementations§
impl Freeze for AdmittedModernPost
impl RefUnwindSafe for AdmittedModernPost
impl Send for AdmittedModernPost
impl Sync for AdmittedModernPost
impl Unpin for AdmittedModernPost
impl UnsafeUnpin for AdmittedModernPost
impl UnwindSafe for AdmittedModernPost
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).