1 2 3 4 5 6 7 8 9 10 11 12
#[cfg(feature = "axum")] mod axum { use axum::response::{Html, IntoResponse, Response}; use crate::Node; impl IntoResponse for Node { fn into_response(self) -> Response { Html(self.to_string()).into_response() } } }