[−][src]Struct watchman_client::pdu::QueryResult
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]
F: Debug + Clone,
fn clone(&self) -> QueryResult<F>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Debug> Debug for QueryResult<F> where
F: Debug + Clone,
[src]
F: Debug + Clone,
impl<'de, F> Deserialize<'de> for QueryResult<F> where
F: Debug + Clone,
F: Deserialize<'de>,
[src]
F: Debug + Clone,
F: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<F> RefUnwindSafe for QueryResult<F> where
F: RefUnwindSafe,
[src]
F: RefUnwindSafe,
impl<F> Send for QueryResult<F> where
F: Send,
[src]
F: Send,
impl<F> Sync for QueryResult<F> where
F: Sync,
[src]
F: Sync,
impl<F> Unpin for QueryResult<F> where
F: Unpin,
[src]
F: Unpin,
impl<F> UnwindSafe for QueryResult<F> where
F: UnwindSafe,
[src]
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,