pub struct FilesetData {
pub writes_supported: bool,
pub is_root: bool,
pub is_file: bool,
pub files: Vec<RawFileData>,
}
Expand description
Basic RFSAPI response returned by the server.
§Examples
let resp: FilesetData = serde_json::from_str(server_response);
println!("Requested directory has {} children.", resp.files.len());
Fields§
§writes_supported: bool
Whether PUT and DELETE requests are allowed on the server.
is_root: bool
Whether the requested directory is the root (topmost).
false
if a singular file was requested.
is_file: bool
Whether the requested resource is a file.
files: Vec<RawFileData>
List of requested files.
If the requested resource is a directory, its immediate children are returned here.
If the requested resource is a file, its information is returned as the only element.
Trait Implementations§
Source§impl Clone for FilesetData
impl Clone for FilesetData
Source§fn clone(&self) -> FilesetData
fn clone(&self) -> FilesetData
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FilesetData
impl Debug for FilesetData
Source§impl<'de> Deserialize<'de> for FilesetData
impl<'de> Deserialize<'de> for FilesetData
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
Source§impl Hash for FilesetData
impl Hash for FilesetData
Source§impl Ord for FilesetData
impl Ord for FilesetData
Source§fn cmp(&self, other: &FilesetData) -> Ordering
fn cmp(&self, other: &FilesetData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FilesetData
impl PartialEq for FilesetData
Source§impl PartialOrd for FilesetData
impl PartialOrd for FilesetData
Source§impl Serialize for FilesetData
impl Serialize for FilesetData
impl Eq for FilesetData
impl StructuralPartialEq for FilesetData
Auto Trait Implementations§
impl Freeze for FilesetData
impl RefUnwindSafe for FilesetData
impl Send for FilesetData
impl Sync for FilesetData
impl Unpin for FilesetData
impl UnwindSafe for FilesetData
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