C4DocPutRequest

Struct C4DocPutRequest 

Source
#[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§

Source§

impl Debug for C4DocPutRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.