Struct leptos_spin::request::SpinRequest
source · pub struct SpinRequest {
pub req: IncomingRequest,
pub path_with_query: Option<String>,
}
Expand description
This is here because the orphan rule does not allow us to implement it on IncomingRequest with the generic error. So we have to wrap it to make it happy
Fields§
§req: IncomingRequest
§path_with_query: Option<String>
Implementations§
source§impl SpinRequest
impl SpinRequest
pub fn new_from_req(req: IncomingRequest) -> Self
Trait Implementations§
source§impl Debug for SpinRequest
impl Debug for SpinRequest
source§impl<CustErr> Req<CustErr> for SpinRequestwhere
CustErr: 'static,
impl<CustErr> Req<CustErr> for SpinRequestwhere
CustErr: 'static,
source§fn as_query(&self) -> Option<&str>
fn as_query(&self) -> Option<&str>
Returns the query string of the request’s URL, starting after the
?
.source§async fn try_into_bytes(self) -> Result<Bytes, ServerFnError<CustErr>>
async fn try_into_bytes(self) -> Result<Bytes, ServerFnError<CustErr>>
Attempts to extract the body of the request into
Bytes
.source§async fn try_into_string(self) -> Result<String, ServerFnError<CustErr>>
async fn try_into_string(self) -> Result<String, ServerFnError<CustErr>>
Attempts to convert the body of the request into a string.
Auto Trait Implementations§
impl RefUnwindSafe for SpinRequest
impl Send for SpinRequest
impl Sync for SpinRequest
impl Unpin for SpinRequest
impl UnwindSafe for SpinRequest
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