#[repr(C)]pub struct C4DocPutRequest {Show 14 fields
pub body: C4String,
pub docID: C4String,
pub revFlags: C4RevisionFlags,
pub existingRevision: bool,
pub allowConflict: bool,
pub history: *const C4String,
pub historyCount: usize,
pub save: bool,
pub maxRevTreeDepth: u32,
pub remoteDBID: C4RemoteID,
pub allocedBody: C4SliceResult,
pub deltaCB: C4DocDeltaApplier,
pub deltaCBContext: *mut c_void,
pub deltaSourceRevID: C4String,
}Expand description
Parameters for adding a revision using c4doc_put.
Fields§
§body: C4String< Revision’s body
docID: C4String< Document ID
revFlags: C4RevisionFlags< Revision flags (deletion, attachments, keepBody)
existingRevision: bool< Is this an already-existing rev coming from replication?
allowConflict: bool< OK to create a conflict, i.e. can parent be non-leaf?
history: *const C4String< Array of ancestor revision IDs
historyCount: usize< Size of history[] array
save: bool< Save the document after inserting the revision?
maxRevTreeDepth: u32< Max depth of revision tree to save (or 0 for default)
remoteDBID: C4RemoteID< Identifier of remote db this rev’s from (or 0 if local)
allocedBody: C4SliceResult< Set this instead of body if body is heap-allocated
deltaCB: C4DocDeltaApplier< If non-NULL, will be called to generate the actual body
deltaCBContext: *mut c_void< Passed to deltaCB callback
deltaSourceRevID: C4String< Source rev for delta (must be valid if deltaCB is given)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for C4DocPutRequest
impl RefUnwindSafe for C4DocPutRequest
impl !Send for C4DocPutRequest
impl !Sync for C4DocPutRequest
impl Unpin for C4DocPutRequest
impl UnwindSafe for C4DocPutRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more