Trait FireStore

Source
pub trait FireStore {
Show 15 methods // Required 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 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;
}

Required Methods§

Source

fn init(&mut self, project_id: &str, token: Option<&str>) -> &mut Self

Source

fn collection(&mut self, collection: &str) -> &mut Self

Source

fn document(&mut self, document: &str) -> &mut Self

Source

fn where_field( &mut self, field: &str, operator: i32, value: ValueType, ) -> &mut Self

Source

fn order_by(&mut self, field: &str, direction: i32) -> &mut Self

Source

fn start_at(&mut self, document: Document) -> &mut Self

Source

fn start_after(&mut self, document: Document) -> &mut Self

Source

fn end_before(&mut self, document: Document) -> &mut Self

Source

fn end_at(&mut self, document: Document) -> &mut Self

Source

fn limit(&mut self, limit: i32) -> &mut Self

Source

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,

Source

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,

Source

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,

Source

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,

Source

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,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§