Enum lexa_framework::view::Node
source · pub enum Node {
Comment(CommentNode),
Doctype(DoctypeNode),
Fragment(FragmentNode),
Element(ElementNode),
Text(TextNode),
Json(JsonTextNode),
UnsafeHtml(DangerousTextNode),
}Variants§
Comment(CommentNode)
Commentaire HTML.
Doctype(DoctypeNode)
Type de document HTML.
Fragment(FragmentNode)
Fragments HTML.
Element(ElementNode)
Elements HTML.
Text(TextNode)
Noeud texte.
Json(JsonTextNode)
Noeud texte (json).
UnsafeHtml(DangerousTextNode)
Noeud texte non sûr
Implementations§
source§impl Node
impl Node
pub fn create_text(text: impl ToString) -> Self
pub fn create_json(text: impl ToString) -> Self
source§impl Node
impl Node
pub fn create_unsafe_html(raw_text: impl ToString) -> Self
pub fn create_unsafe_html_from_file(file: impl AsRef<Path>) -> Self
Trait Implementations§
source§impl IntoResponse for Node
impl IntoResponse for Node
source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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