pub fn amalgamate_states(&self, states: States) -> Result<Option<String>, ServerError> {
        if let Some(amalgamate_states) = &self.amalgamate_states {
            let res = amalgamate_states(states);
            match res {
                Ok(res) => Ok(res),
                Err(GenericErrorWithCause { error, cause }) => Err(ServerError::RenderFnFailed {
                    fn_name: "amalgamate_states".to_string(),
                    template_name: self.get_path(),
                    cause,
                    source: error,
                }),
            }
        } else {
            Err(BuildError::TemplateFeatureNotEnabled {
                template_name: self.path.clone(),
                feature_name: "request_state".to_string(),
            }
            .into())
        }
    }
/// Amalagmates given request and build states. Errors here can be caused by either the server or the client, so the user must specify
/// an [`ErrorCause`].
Amalagmates given request and build states. Errors here can be caused by either the server or the client, so the user must specify
an [`ErrorCause`].
Amalagmates given request and build states . Errors here can be caused by either the server or the client so the user must specify an [ ` ErrorCause ` ] .
pub fn amalgamate_states(&self, states: States) -> Result<Option<String>, ServerError> {
        if let Some(amalgamate_states) = &self.amalgamate_states {
            let res = amalgamate_states(states);
            match res {
                Ok(res) => Ok(res),
                Err(GenericErrorWithCause { error, cause }) => Err(ServerError::RenderFnFailed {
                    fn_name: "amalgamate_states".to_string(),
                    template_name: self.get_path(),
                    cause,
                    source: error,
                }),
            }
        } else {
            Err(BuildError::TemplateFeatureNotEnabled {
                template_name: self.path.clone(),
                feature_name: "request_state".to_string(),
            }
            .into())
        }
    }
pub fn amalgamate_states ( & self , states : States ) -> Result < Option < String > , ServerError > { if let Some ( amalgamate_states ) = & self . amalgamate_states { let res = amalgamate_states ( states ) ; match res { Ok ( res ) => Ok ( res ) , Err ( GenericErrorWithCause { error , cause } ) => Err ( ServerError :: RenderFnFailed { fn_name : " " . to_string ( ) , template_name : self . get_path ( ) , cause , source : error , } ) , } } else { Err ( BuildError :: TemplateFeatureNotEnabled { template_name : self . path . clone ( ) , feature_name : " " . to_string ( ) , } . into ( ) ) } }
Amalagmates given request and build states.
Amalagmates given request and build states .
&self
states
States
&self
states
States