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

Whether PUT and DELETE requests are allowed on the server.

Whether the requested directory is the root (topmost).

false if a singular file was requested.

Whether the requested resource is a file.

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Ord for FilesetData
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for FilesetData
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Formats the value using the given formatter.

impl Clone for FilesetData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for FilesetData
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more