#[repr(C)]
pub struct c_cb_params { pub documents: Vec<Box<Document>>, pub is_initial: bool, pub old_documents: Option<Vec<Box<Document>>>, pub insertions: Option<Box<usize>>, pub deletions: Option<Box<usize>>, pub updates: Option<Box<usize>>, pub moves: Option<Box<usize>>, }

Fields

documents: Vec<Box<Document>>

Must be freed with ditto_free_documents.

is_initial: boolold_documents: Option<Vec<Box<Document>>>

Must be freed with ditto_free_documents.

insertions: Option<Box<usize>>

Must be freed using ditto_free_indices.

deletions: Option<Box<usize>>

Must be freed using ditto_free_indices.

updates: Option<Box<usize>>

Must be freed using ditto_free_indices.

moves: Option<Box<usize>>

Must be freed using ditto_free_indices.

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 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.