pub struct HtmlLambdaResponseProcessor<T: HtmlTagRenderer + Clone + Send + Sync> {
pub router: Router,
pub tag_renderer: T,
pub background: Option<Color>,
pub title: Option<String>,
pub description: Option<String>,
pub viewport: Option<String>,
}
Fields§
§router: Router
§tag_renderer: T
§background: Option<Color>
§title: Option<String>
§description: Option<String>
§viewport: Option<String>
Implementations§
Source§impl<T: HtmlTagRenderer + Clone + Send + Sync> HtmlLambdaResponseProcessor<T>
impl<T: HtmlTagRenderer + Clone + Send + Sync> HtmlLambdaResponseProcessor<T>
Trait Implementations§
Source§impl<T: Clone + HtmlTagRenderer + Clone + Send + Sync> Clone for HtmlLambdaResponseProcessor<T>
impl<T: Clone + HtmlTagRenderer + Clone + Send + Sync> Clone for HtmlLambdaResponseProcessor<T>
Source§fn clone(&self) -> HtmlLambdaResponseProcessor<T>
fn clone(&self) -> HtmlLambdaResponseProcessor<T>
Returns a copy 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<T: HtmlTagRenderer + Clone + Send + Sync> LambdaResponseProcessor<PreparedRequest> for HtmlLambdaResponseProcessor<T>
impl<T: HtmlTagRenderer + Clone + Send + Sync> LambdaResponseProcessor<PreparedRequest> for HtmlLambdaResponseProcessor<T>
Source§fn prepare_request(&self, req: Request) -> Result<PreparedRequest, Error>
fn prepare_request(&self, req: Request) -> Result<PreparedRequest, Error>
Errors Read more
fn to_response<'life0, 'async_trait>(
&'life0 self,
req: PreparedRequest,
) -> Pin<Box<dyn Future<Output = Result<Content, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn to_body<'life0, 'async_trait>(
&'life0 self,
content: Content,
req: PreparedRequest,
) -> Pin<Box<dyn Future<Output = Result<Content, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for HtmlLambdaResponseProcessor<T>where
T: Freeze,
impl<T> RefUnwindSafe for HtmlLambdaResponseProcessor<T>where
T: RefUnwindSafe,
impl<T> Send for HtmlLambdaResponseProcessor<T>
impl<T> Sync for HtmlLambdaResponseProcessor<T>
impl<T> Unpin for HtmlLambdaResponseProcessor<T>where
T: Unpin,
impl<T> UnwindSafe for HtmlLambdaResponseProcessor<T>where
T: UnwindSafe,
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