pub struct FirestoreClient { /* private fields */ }Implementations§
Source§impl FirestoreClient
impl FirestoreClient
pub fn new(auth: FirebaseAuth) -> Self
pub async fn get_document(&self, path: &str) -> Result<Document>
pub async fn list_documents( &self, collection_path: &str, page_size: Option<u32>, page_token: Option<&str>, ) -> Result<(Vec<Document>, Option<String>)>
pub async fn list_collection_ids( &self, parent_path: Option<&str>, ) -> Result<Vec<String>>
pub async fn run_query( &self, parent_path: Option<&str>, structured_query: Value, ) -> Result<Vec<Document>>
Trait Implementations§
Source§impl Clone for FirestoreClient
impl Clone for FirestoreClient
Source§fn clone(&self) -> FirestoreClient
fn clone(&self) -> FirestoreClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirestoreClient
impl !RefUnwindSafe for FirestoreClient
impl Send for FirestoreClient
impl Sync for FirestoreClient
impl Unpin for FirestoreClient
impl UnsafeUnpin for FirestoreClient
impl !UnwindSafe for FirestoreClient
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