Decode Module
Functions and values
| Function or value |
Description
|
Full Usage:
array decoder el
Parameters:
IndexedDecoder<'TResult>
el : XmlElement
Returns: Result<'TResult array, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes each child element with the given indexed decoder, stopping at the first failure. The result array is allocated once at the exact child count.
|
Full Usage:
arrayCol decoder el
Parameters:
IndexedCollectErrorsDecoder<'TResult>
el : XmlElement
Returns: Result<'TResult array, DecodeError list>
Modifiers: inline Type parameters: 'TResult |
Decodes each child element with the given indexed decoder, collecting every failure.
|
Full Usage:
auto el
Parameters:
XmlElement
Returns: Result<'TResult, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Deserializes an element with XmlSerializer into a value of type 'TResult.
|
Full Usage:
autoWithOptions options el
Parameters:
XmlSerializerOptions
el : XmlElement
Returns: Result<'TResult, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Deserializes an element with XmlSerializer and custom options into a value of type 'TResult.
|
Full Usage:
collectOneOf decoders element
Parameters:
Decoder<'TResult> seq
element : XmlElement
Returns: Result<'TResult, DecodeError list>
Type parameters: 'TResult |
Tries each decoder in order and returns the first success, otherwise the collected errors.
|
Full Usage:
decodeAt decoder index el
Parameters:
Decoder<'TResult>
index : int
el : XmlElement
Returns: Result<'TResult, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the child element at the given index with the given decoder.
|
Full Usage:
decodeAtChild decoder name el
Parameters:
Decoder<'TResult>
name : string
el : XmlElement
Returns: Result<'TResult, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the named child element with the given decoder.
|
Full Usage:
decodeAtKey decoder key el
Parameters:
Decoder<'TResult>
key : string
el : XmlElement
Returns: Result<'TResult, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the named child element with the given decoder.
|
Full Usage:
decodeAtKeyInNamespace decoder namespaceUri key el
Parameters:
Decoder<'TResult>
namespaceUri : string
key : string
el : XmlElement
Returns: Result<'TResult, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the child element with the given local name and namespace URI.
|
Full Usage:
dict decoder el
Parameters:
IndexedMapDecoder<'TValue>
el : XmlElement
Returns: Result<Dictionary<string, 'TValue>, DecodeError>
Modifiers: inline Type parameters: 'TValue |
Decodes child elements as dictionary entries keyed by local name, stopping at the first failure.
|
Full Usage:
dictCol decoder el
Parameters:
IndexedMapCollectErrorsDecoder<'TValue>
el : XmlElement
Returns: Result<Dictionary<string, 'TValue>, DecodeError list>
Modifiers: inline Type parameters: 'TValue |
Decodes child elements as dictionary entries keyed by local name, collecting every failure.
|
Full Usage:
list decoder el
Parameters:
IndexedDecoder<'TResult>
el : XmlElement
Returns: Result<'TResult list, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes each child element with the given indexed decoder, stopping at the first failure.
|
Full Usage:
listCol decoder el
Parameters:
IndexedCollectErrorsDecoder<'TResult>
el : XmlElement
Returns: Result<'TResult list, DecodeError list>
Modifiers: inline Type parameters: 'TResult |
Decodes each child element with the given indexed decoder, collecting every failure.
|
Full Usage:
map decoder el
Parameters:
IndexedMapDecoder<'TValue>
el : XmlElement
Returns: Result<Map<string, 'TValue>, DecodeError>
Modifiers: inline Type parameters: 'TValue |
Decodes child elements as map entries keyed by local name, stopping at the first failure.
|
Full Usage:
mapCol decoder el
Parameters:
IndexedMapCollectErrorsDecoder<'TValue>
el : XmlElement
Returns: Result<Map<string, 'TValue>, DecodeError list>
Modifiers: inline Type parameters: 'TValue |
Decodes child elements as map entries keyed by local name, collecting every failure.
|
|
|
Full Usage:
sequence decoder el
Parameters:
IndexedDecoder<'TResult>
el : XmlElement
Returns: Result<'TResult seq, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes each child element with the given indexed decoder, stopping at the first failure.
|
Full Usage:
sequenceCol decoder el
Parameters:
IndexedCollectErrorsDecoder<'TResult>
el : XmlElement
Returns: Result<'TResult seq, DecodeError list>
Modifiers: inline Type parameters: 'TResult |
Decodes each child element with the given indexed decoder, collecting every failure.
|
Full Usage:
tryDecodeAt decoder index el
Parameters:
Decoder<'TResult>
index : int
el : XmlElement
Returns: Result<'TResult option, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the child element at the given index, returning None when the index is out of range.
|
Full Usage:
tryDecodeAtKey decoder key el
Parameters:
Decoder<'TResult>
key : string
el : XmlElement
Returns: Result<'TResult option, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the named child element, returning None when the child is missing.
|
Full Usage:
tryDecodeAtKeyInNamespace decoder namespaceUri key el
Parameters:
Decoder<'TResult>
namespaceUri : string
key : string
el : XmlElement
Returns: Result<'TResult option, DecodeError>
Modifiers: inline Type parameters: 'TResult |
Decodes the child element with the given local name and namespace URI, returning None when missing.
|
JDeck