[][src]Struct arangors::response::Cursor

pub struct Cursor<T> {
    pub error: bool,
    pub code: u16,
    pub count: Option<usize>,
    pub cached: bool,
    pub more: bool,
    pub result: Vec<T>,
    pub id: Option<String>,
    pub extra: Option<Extra>,
}

Fields

error: boolcode: u16

HTTP status code

count: Option<usize>

the total number of result documents available

only available if the query was executed with the count attribute set

cached: bool

a boolean flag indicating whether the query result was served from the query cache or not.

If the query result is served from the query cache, the extra return attribute will not contain any stats sub-attribute and no profile sub-attribute.,

more: bool

A boolean indicator whether there are more results available for the cursor on the server

result: Vec<T>

(anonymous json object): an array of result documents (might be empty if query has no results)

id: Option<String>

id of temporary cursor created on the server

extra: Option<Extra>

an optional JSON object with extra information about the query result contained in its stats sub-attribute. For data-modification queries, the extra.stats sub-attribute will contain the number of modified documents and the number of documents that could not be modified due to an error if ignoreErrors query option is specified.

Trait Implementations

impl<T: Debug> Debug for Cursor<T>[src]

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

Auto Trait Implementations

impl<T> Sync for Cursor<T> where
    T: Sync

impl<T> Send for Cursor<T> where
    T: Send

impl<T> Unpin for Cursor<T> where
    T: Unpin

impl<T> RefUnwindSafe for Cursor<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for Cursor<T> where
    T: UnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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