Function contents

Source
pub async fn contents(
    auth: &impl FirebaseAuthBearer,
    path: &str,
    document_id: &str,
) -> Result<String>
Expand description

Return the raw unparsed content of the Firestore document. Methods like read() will deserialize the JSON-encoded response into a known type T

Note that this leverages std::io::Read and the read_to_string() method to chunk the response. This will raise FirebaseError::IO if there are errors reading the stream. Please see read_to_end()