pub struct DocumentClient<'a> { /* private fields */ }Implementations§
Source§impl<'a> DocumentClient<'a>
impl<'a> DocumentClient<'a>
pub async fn insert( &self, collection: &str, body: &JsonValue, ) -> Result<DocumentItem>
pub async fn get(&self, collection: &str, rid: &str) -> Result<DocumentItem>
pub async fn list( &self, collection: &str, options: ListOptions<'_>, ) -> Result<ListResult>
pub async fn filter(&self, collection: &str, filter: &str) -> Result<ListResult>
pub async fn patch( &self, collection: &str, rid: &str, patch: &JsonValue, ) -> Result<DocumentItem>
pub async fn delete(&self, collection: &str, rid: &str) -> Result<DeleteResult>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DocumentClient<'a>
impl<'a> !RefUnwindSafe for DocumentClient<'a>
impl<'a> Send for DocumentClient<'a>
impl<'a> Sync for DocumentClient<'a>
impl<'a> Unpin for DocumentClient<'a>
impl<'a> UnsafeUnpin for DocumentClient<'a>
impl<'a> !UnwindSafe for DocumentClient<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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