pub struct State { /* private fields */ }
Trait Implementations§
Source§impl FireStore for State
impl FireStore for State
fn init(&mut self, project_id: &str, token: Option<&str>) -> &mut Self
fn collection(&mut self, collection: &str) -> &mut Self
fn document(&mut self, document: &str) -> &mut Self
fn where_field( &mut self, field: &str, operator: i32, value: ValueType, ) -> &mut Self
fn order_by(&mut self, field: &str, direction: i32) -> &mut Self
fn start_at(&mut self, document: Document) -> &mut Self
fn start_after(&mut self, document: Document) -> &mut Self
fn end_before(&mut self, document: Document) -> &mut Self
fn end_at(&mut self, document: Document) -> &mut Self
fn limit(&mut self, limit: i32) -> &mut Self
fn get_document<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Document, BoxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_documents<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Document>, BoxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_document<'life0, 'life1, 'async_trait>(
&'life0 mut self,
document_id: &'life1 str,
fields: HashMap<String, FsValue>,
) -> Pin<Box<dyn Future<Output = Result<Document, BoxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_document<'life0, 'async_trait>(
&'life0 mut self,
fields: HashMap<String, FsValue>,
) -> Pin<Box<dyn Future<Output = Result<Document, BoxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<String, BoxError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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> 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