Struct ejdb2_sys_windows::_EJDB_DOC
source · [−]#[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
Auto Trait Implementations
impl RefUnwindSafe for _EJDB_DOC
impl !Send for _EJDB_DOC
impl !Sync for _EJDB_DOC
impl Unpin for _EJDB_DOC
impl UnwindSafe for _EJDB_DOC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more