[][src]Struct rfsapi::FilesetData

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 Clone for FilesetData[src]

impl Debug for FilesetData[src]

impl<'de> Deserialize<'de> for FilesetData[src]

impl Eq for FilesetData[src]

impl Hash for FilesetData[src]

impl Ord for FilesetData[src]

impl PartialEq<FilesetData> for FilesetData[src]

impl PartialOrd<FilesetData> for FilesetData[src]

impl Serialize for FilesetData[src]

impl StructuralEq for FilesetData[src]

impl StructuralPartialEq for FilesetData[src]

Auto Trait Implementations

impl RefUnwindSafe for FilesetData

impl Send for FilesetData

impl Sync for FilesetData

impl Unpin for FilesetData

impl UnwindSafe for FilesetData

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.