pub struct Tree {
pub version: Version,
pub ty: TreeType,
pub node: Node,
}
Fields§
§version: Version
Protocol version the tree is compatible with.
ty: TreeType
Type of node.
node: Node
A tree is also a node, so we flatten the content of a node when doing deser.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tree
impl<'de> Deserialize<'de> for Tree
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more