#[repr(C)]
pub struct _EJDB_DOC { pub id: i64, pub raw: JBL, pub node: JBL_NODE, pub next: *mut _EJDB_DOC, pub prev: *mut _EJDB_DOC, }
Expand description

@brief Document representation as result of query execution. @see ejdb_exec()

Fields

id: i64

< Document ID. Not zero.

raw: JBL

< JSON document in compact binary form. Based on Binn format. Not zero.

node: JBL_NODE

< JSON document as in-memory tree. Not zero only if query has apply or projection parts.

@warning The lifespan of @ref EJDB_DOC.node will be valid only during the call of @ref EJDB_EXEC_VISITOR It is true in all cases EXCEPT:

  • @ref EJDB_EXEC.pool is not set by ejdb_exec() caller
  • One of ejdb_list() methods used
next: *mut _EJDB_DOC

< Reference to next document in result list or zero. Makes sense only for ejdb_list() calls.

prev: *mut _EJDB_DOC

< Reference to the previous document in result list or zero. Makes sense only for ejdb_list() calls.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.