hashira 0.0.2-alpha

A server side rendering framework build on top of Yew
Documentation
use http::Extensions;
use std::ops::{Deref, DerefMut};

/// Shared data for the application.
#[derive(Default)]
pub struct AppData(Extensions);

impl Deref for AppData {
    type Target = Extensions;

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}

impl DerefMut for AppData {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}