[−][src]Function firestore_db_and_auth::documents::read_by_name
pub fn read_by_name<'a, T, BEARER>(
auth: &'a mut BEARER,
document_name: &str
) -> Result<T> where
T: Deserialize<'b>,
BEARER: FirebaseAuthBearer<'c>,
Read a document of a specific type from a collection by its Firestore document name
Arguments
- 'auth' The authentication token
- 'document_name' The document path / collection and document id; For example "projects/my_project/databases/(default)/documents/tests/test"