MessageDescriptorRecord
PackageReified.Constraint
Reads and builds message identities.
Specification
Kind
Record
Members
3
Examples
0
keySignature
MessageDescriptor.key descriptor
argumentsSignature
MessageDescriptor.arguments descriptor
segmentsSignature
MessageDescriptor.segments descriptor
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Operations | ||
| key | MessageDescriptor.key descriptor | The canonical unencoded key, exactly as authored. |
| arguments | MessageDescriptor.arguments descriptor | The operands the message interpolates, named for the template. |
| segments | MessageDescriptor.segments descriptor | The parsed, unencoded key segments. |
Operations
kind:member
The canonical unencoded key, exactly as authored.
Parameters
| Name | Type | Description |
|---|---|---|
| descriptor | MessageDescriptor |
Returns
string
Verification Examples
let descriptor = MessageDescriptor.Advanced.create "books.isbn.invalid" Map.empty in MessageDescriptor.key descriptor // "books.isbn.invalid"kind:member
The operands the message interpolates, named for the template.
Parameters
| Name | Type | Description |
|---|---|---|
| descriptor | MessageDescriptor |
Returns
Map<string, ConstraintValue>
Verification Examples
let descriptor = MessageDescriptor.Advanced.create "books.isbn.invalid" Map.empty in MessageDescriptor.arguments descriptor |> Map.tryFind "expectedLength"