[][src]Struct watchman_client::pdu::QueryResult

pub struct QueryResult<F> where
    F: Debug + Clone
{ pub version: String, pub is_fresh_instance: bool, pub files: Option<Vec<F>>, pub clock: Clock, pub state_metadata: Option<Value>, pub saved_state_info: Option<Value>, // some fields omitted }

Holds the result of a query. The result is generic over a F type that you define. The F should deserialize the list of fields in your QueryRequestCommon struct.

Fields

version: String

The version of the watchman server

is_fresh_instance: bool

If true, indicates that this result set represents the total set of possible matches. Otherwise the results should be considered to be incremental since your last since query. If is_fresh_instance is true you MUST arrange to forget about any files not included in the list of files in this QueryResult otherwise you risk diverging your state.

files: Option<Vec<F>>

Holds the list of matching files from the query

clock: Clock

The clock value at the time that these results were generated

state_metadata: Option<Value>saved_state_info: Option<Value>

When using source control aware queries with saved state configuration, this field holds metadata from the save state storage engine.

Trait Implementations

impl<F: Clone> Clone for QueryResult<F> where
    F: Debug + Clone
[src]

impl<F: Debug> Debug for QueryResult<F> where
    F: Debug + Clone
[src]

impl<'de, F> Deserialize<'de> for QueryResult<F> where
    F: Debug + Clone,
    F: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for QueryResult<F> where
    F: RefUnwindSafe
[src]

impl<F> Send for QueryResult<F> where
    F: Send
[src]

impl<F> Sync for QueryResult<F> where
    F: Sync
[src]

impl<F> Unpin for QueryResult<F> where
    F: Unpin
[src]

impl<F> UnwindSafe for QueryResult<F> where
    F: UnwindSafe
[src]

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: for<'de> 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.