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
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FilesetData) -> bool
This method tests for !=
.
impl Ord for FilesetData
[src]
fn cmp(&self, __arg_0: &FilesetData) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialOrd for FilesetData
[src]
fn partial_cmp(&self, __arg_0: &FilesetData) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &FilesetData) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &FilesetData) -> bool
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
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &FilesetData) -> bool
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]
impl Clone for FilesetData
[src]
fn clone(&self) -> FilesetData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for FilesetData
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.