Struct rfsapi::FilesetData
[−]
[src]
pub struct FilesetData {
pub writes_supported: bool,
pub is_root: bool,
pub is_file: bool,
pub files: Vec<RawFileData>,
}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
impl Eq for FilesetData[src]
impl PartialEq for FilesetData[src]
fn eq(&self, __arg_0: &FilesetData) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FilesetData) -> bool[src]
This method tests for !=.
impl Ord for FilesetData[src]
fn cmp(&self, __arg_0: &FilesetData) -> Ordering[src]
This method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl PartialOrd for FilesetData[src]
fn partial_cmp(&self, __arg_0: &FilesetData) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &FilesetData) -> bool[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &FilesetData) -> bool[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &FilesetData) -> bool[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &FilesetData) -> bool[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for FilesetData[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for FilesetData[src]
fn clone(&self) -> FilesetData[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more