AvroSerializerOptionsType
此内容尚不支持你的语言。
AvroSerializerOptionsType<
T> =object
Defined in: src/serialization/AvroSerializerOptions.ts:31
Plain options-object shape accepted by an AvroSerializer.
Type Parameters
Section titled “Type Parameters”T = unknown
Properties
Section titled “Properties”avroType
Section titled “avroType”
readonlyavroType:AvroType<T>
Defined in: src/serialization/AvroSerializerOptions.ts:33
The compiled Avro type that does the encoding. Required.
readonlyid:number
Defined in: src/serialization/AvroSerializerOptions.ts:39
Wire identifier embedded in every frame. Required, and must be
= 100: 1–99 are reserved for the built-ins (JSON=1, CBOR=2), and a collision there is only noticed when a reader decodes garbage.
manifest?
Section titled “manifest?”
readonlyoptionalmanifest?:string
Defined in: src/serialization/AvroSerializerOptions.ts:47
Manifest written alongside the bytes. Defaults to the Avro type’s
record name, so a decoder can tell a Deposited row from a
Withdrawn one; set '' to write no manifest at all.
readonlyoptionalname?:string
Defined in: src/serialization/AvroSerializerOptions.ts:41
Diagnostic name shown in error messages. Default 'avro'.
