Skip to main content

rustenium_cdp_definitions/browser_protocol/file_system/
results.rs

1use serde::{Deserialize, Serialize};
2#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
3pub struct GetDirectoryResult {
4    #[doc = "Returns the directory object at the path."]
5    #[serde(rename = "directory")]
6    pub directory: super::types::Directory,
7}
8impl TryFrom<serde_json::Value> for GetDirectoryResult {
9    type Error = serde_json::Error;
10    fn try_from(value: serde_json::Value) -> Result<Self, Self::Error> {
11        serde_json::from_value(value)
12    }
13}