Function to_bson_file

Source
pub async fn to_bson_file<S>(path: &str, bson: &S) -> Result<()>
where S: Serialize,