pub struct RuntimeRenderRequest {
pub method: String,
pub absolute_target: String,
pub relative_target: String,
pub relative_path: String,
pub cookie: Option<String>,
pub csrf_token: String,
pub actor_id: i64,
pub has_user: bool,
}Expand description
App-neutral request data needed by root render adapters.
Fields§
§method: String§absolute_target: String§relative_target: String§relative_path: String§csrf_token: String§actor_id: i64§has_user: boolImplementations§
Source§impl RuntimeRenderRequest
impl RuntimeRenderRequest
pub fn from_request( request: &HttpRequest, app_base_path: Option<&str>, csrf_token: String, actor_id: i64, ) -> Self
pub fn relative_http_request(&self, request: &HttpRequest) -> HttpRequest
Trait Implementations§
Source§impl Clone for RuntimeRenderRequest
impl Clone for RuntimeRenderRequest
Source§fn clone(&self) -> RuntimeRenderRequest
fn clone(&self) -> RuntimeRenderRequest
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 moreSource§impl Debug for RuntimeRenderRequest
impl Debug for RuntimeRenderRequest
Source§impl PartialEq for RuntimeRenderRequest
impl PartialEq for RuntimeRenderRequest
Source§fn eq(&self, other: &RuntimeRenderRequest) -> bool
fn eq(&self, other: &RuntimeRenderRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RuntimeRenderRequest
impl StructuralPartialEq for RuntimeRenderRequest
Auto Trait Implementations§
impl Freeze for RuntimeRenderRequest
impl RefUnwindSafe for RuntimeRenderRequest
impl Send for RuntimeRenderRequest
impl Sync for RuntimeRenderRequest
impl Unpin for RuntimeRenderRequest
impl UnsafeUnpin for RuntimeRenderRequest
impl UnwindSafe for RuntimeRenderRequest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.