[][src]Enum watchman_client::FileType

pub enum FileType {
    BlockSpecial,
    CharSpecial,
    Directory,
    Regular,
    Fifo,
    Symlink,
    Socket,
    SolarisDoor,
}

Encodes the file type field returned in query results and specified in expression terms.

https://facebook.github.io/watchman/docs/expr/type.html

Use this in your query file struct like this:

use serde::Deserialize;
use watchman_client::*;
#[derive(Deserialize, Debug, Clone)]
struct NameAndType {
   name: std::path::PathBuf,
   #[serde(rename = "type")]
   file_type: FileType,
}

Variants

BlockSpecial
CharSpecial
Directory
Regular
Fifo
Socket
SolarisDoor

Trait Implementations

impl Into<String> for FileType[src]

impl From<String> for FileType[src]

impl Clone for FileType[src]

impl Copy for FileType[src]

impl ToString for FileType[src]

impl Debug for FileType[src]

impl Serialize for FileType[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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

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