Use this helper to build an instance from an existing Avro `Schema`.
(schema: &Schema)
| 39 | impl RabinFingerprintHeader { |
| 40 | /// Use this helper to build an instance from an existing Avro `Schema`. |
| 41 | pub fn from_schema(schema: &Schema) -> Self { |
| 42 | let fingerprint = schema.fingerprint::<Rabin>(); |
| 43 | RabinFingerprintHeader { fingerprint } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | impl HeaderBuilder for RabinFingerprintHeader { |
nothing calls this directly
no outgoing calls
no test coverage detected