duid-core 0.1.0

Core crate used for Duid
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::core::{
    html::attributes::{Attribute}
};
use indextree::NodeId;

#[derive(Debug, Clone)]
pub(crate) enum Patch<MSG> {
    Replace(NodeId, NodeId),
    AddAttribute(NodeId, Attribute<MSG>),
    RemoveAttribute(NodeId, String),
    UpdateAttribute(NodeId, (String, Attribute<MSG>)),
    ChangeText(NodeId, Option<String>),
}