[][src]Function firestore_db_and_auth::documents::read

pub fn read<'a, T, BEARER>(
    auth: &'a mut BEARER,
    path: &str,
    document_id: &str
) -> Result<T> where
    T: Deserialize<'b>,
    BEARER: FirebaseAuthBearer<'c>, 

Read a document of a specific type from a collection

Arguments

  • 'auth' The authentication token
  • 'path' The document path / collection; For example "my_collection" or "a/nested/collection"
  • 'document_id' The document id. Make sure that you do not include the document id to the path argument.