[−][src]Function firestore_db_and_auth::documents::read_by_name
pub fn read_by_name<T>(
auth: &impl FirebaseAuthBearer,
document_name: impl AsRef<str>
) -> Result<T> where
T: Deserialize<'b>,
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"