Struct openapi_parser::TreeNode
source · pub struct TreeNode {
pub name: String,
pub type: NodeType,
pub description: Option<String>,
pub examples: Vec<String>,
pub enum: Option<Vec<String>>,
}
Expand description
Parser schema structure node
Fields§
§name: String
The name of the schema
type: NodeType
The type of the schema
description: Option<String>
The description provided for the schema, if available
examples: Vec<String>
Examples values for the schema, if available
enum: Option<Vec<String>>
Discrete values of the schema, if specified
Implementations§
source§impl TreeNode
impl TreeNode
sourcepub fn print_name(&self) -> String
pub fn print_name(&self) -> String
Get the name of the schema, alongside with a symbol indicating its type
sourcepub fn merge_with(self, other: Self) -> Self
pub fn merge_with(self, other: Self) -> Self
Merge two TreeNode