Get a reference to the resolved schema (or just the writer schema, if no reader schema was provided or the two schemas are identical)
(&self)
| 223 | /// (or just the writer schema, if no reader schema was provided |
| 224 | /// or the two schemas are identical) |
| 225 | pub fn schema(&self) -> &Schema { |
| 226 | match &self.resolved_schema { |
| 227 | Some(schema) => schema, |
| 228 | None => self.writer_schema(), |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | #[inline] |
| 233 | /// Read the next Avro value from the file, if one exists. |
no test coverage detected