Class RecordSchema
A record schema: a named sequence of fields.
public sealed class RecordSchema : NamedSchema
- Inheritance
-
RecordSchema
- Inherited Members
Constructors
- RecordSchema(SchemaName, IEnumerable<RecordField>, string?, IEnumerable<SchemaName>?, bool, IReadOnlyDictionary<string, JsonElement>?)
Initializes a record schema.
Properties
- Fields
Gets the fields, in declaration order.
- IsError
Gets a value indicating whether this is a protocol
errortype rather than arecord.
Methods
- CreateRecursive(SchemaName, Func<RecordSchema, IEnumerable<RecordField>>, string?, IEnumerable<SchemaName>?, bool, IReadOnlyDictionary<string, JsonElement>?)
Creates a record whose fields may refer to the record itself, such as a linked list node.
- GetField(string)
Gets a field by name.
- TryGetField(string, out RecordField?)
Looks up a field by name.