pub struct FileNode {
pub children: Option<Vec<FileNode>>,
pub coverage: Option<f64>,
pub expanded: Option<bool>,
pub name: String,
pub path: String,
pub type_: String,
}Expand description
Represents a file or folder in the repository tree.
JSON schema
{
"title": "FileNode",
"description": "Represents a file or folder in the repository tree.",
"type": "object",
"required": [
"name",
"path",
"type"
],
"properties": {
"children": {
"title": "Children",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/components/schemas/FileNode"
}
},
"coverage": {
"title": "Coverage",
"type": [
"number",
"null"
]
},
"expanded": {
"title": "Expanded",
"type": [
"boolean",
"null"
]
},
"name": {
"title": "Name",
"type": "string"
},
"path": {
"title": "Path",
"type": "string"
},
"type": {
"title": "Type",
"type": "string"
}
}
}Fields§
§children: Option<Vec<FileNode>>§coverage: Option<f64>§expanded: Option<bool>§name: String§path: String§type_: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileNode
impl<'de> Deserialize<'de> for FileNode
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
Auto Trait Implementations§
impl Freeze for FileNode
impl RefUnwindSafe for FileNode
impl Send for FileNode
impl Sync for FileNode
impl Unpin for FileNode
impl UnwindSafe for FileNode
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