pub struct DocumentBuilder { /* private fields */ }
Implementations§
Source§impl DocumentBuilder
impl DocumentBuilder
pub fn insert<P: Pack>(self, doc: P) -> Self
pub fn insert_operation(self, op: Operation) -> Self
pub fn insert_custom(self, collection: Collection, doc: impl Message) -> Self
pub fn delete<P: Pack>(self, doc: P) -> Self
pub fn delete_custom(self, collection: Collection, id: Vec<u8>) -> Self
pub fn update<P: Pack>(self, update: &DocumentUpdate<P>) -> Self
Trait Implementations§
Source§impl Default for DocumentBuilder
impl Default for DocumentBuilder
Source§fn default() -> DocumentBuilder
fn default() -> DocumentBuilder
Returns the “default value” for a type. Read more
Source§impl From<DocumentBuilder> for DocumentOperations
impl From<DocumentBuilder> for DocumentOperations
Source§fn from(doc: DocumentBuilder) -> Self
fn from(doc: DocumentBuilder) -> Self
Converts to this type from the input type.
Source§impl WithContext for DocumentBuilder
impl WithContext for DocumentBuilder
Auto Trait Implementations§
impl Freeze for DocumentBuilder
impl RefUnwindSafe for DocumentBuilder
impl Send for DocumentBuilder
impl Sync for DocumentBuilder
impl Unpin for DocumentBuilder
impl UnwindSafe for DocumentBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request