pub trait FireStore {
Show methods
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
'life0: 'async_trait,
Self: 'async_trait;
fn get_documents<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<Document>, BoxError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: 'async_trait;
fn delete<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<String, BoxError>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}