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

pub fn read<T>(
    auth: &impl FirebaseAuthBearer,
    path: &str,
    document_id: impl AsRef<str>
) -> Result<T> where
    T: Deserialize<'b>, 

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.