pub struct RenderContext {
pub environment: ExecutionEnvironment,
pub route_params: Properties,
pub query_params: Properties,
pub global_state: Properties,
pub is_server_side: bool,
pub is_client_side: bool,
pub hydration_id: Option<String>,
}
Expand description
レンダリングコンテキスト
Fields§
§environment: ExecutionEnvironment
§route_params: Properties
§query_params: Properties
§global_state: Properties
§is_server_side: bool
§is_client_side: bool
§hydration_id: Option<String>
Implementations§
Source§impl RenderContext
impl RenderContext
pub fn new() -> Self
pub fn server_side() -> Self
pub fn client_side() -> Self
pub fn with_route_params(self, params: Properties) -> Self
pub fn with_query_params(self, params: Properties) -> Self
Trait Implementations§
Source§impl Clone for RenderContext
impl Clone for RenderContext
Source§fn clone(&self) -> RenderContext
fn clone(&self) -> RenderContext
Returns a duplicate 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 RenderContext
impl Debug for RenderContext
Source§impl<'de> Deserialize<'de> for RenderContext
impl<'de> Deserialize<'de> for RenderContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RenderContext
impl PartialEq for RenderContext
Source§impl Serialize for RenderContext
impl Serialize for RenderContext
impl StructuralPartialEq for RenderContext
Auto Trait Implementations§
impl Freeze for RenderContext
impl RefUnwindSafe for RenderContext
impl Send for RenderContext
impl Sync for RenderContext
impl Unpin for RenderContext
impl UnwindSafe for RenderContext
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