| <link rel="stylesheet" href="../style.css" /> |
| |
| [TOC] |
| # fuchsia.data |
| |
| <div class="fidl-version-div"><span class="fidl-attribute fidl-version">Added: 7</span></div> |
| |
| |
| |
| ## **STRUCTS** |
| |
| ### DictionaryEntry {#DictionaryEntry data-text="DictionaryEntry"} |
| *Defined in [fuchsia.data/data.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=23)* |
| <p>A key/value pair in a <code>Dictionary</code>.</p> |
| |
| <table> |
| <tr><th>Field</th><th>Type</th><th>Description</th><th>Default</th></tr> |
| <tr id="DictionaryEntry.key"> |
| <td><code>key</code></td> |
| <td> |
| <code>string[1024]</code> |
| </td> |
| <td></td> |
| <td>No default</td> |
| </tr> |
| <tr id="DictionaryEntry.value"> |
| <td><code>value</code></td> |
| <td> |
| <code><a class='link' href='#DictionaryValue'>DictionaryValue</a>?</code> |
| </td> |
| <td></td> |
| <td>No default</td> |
| </tr> |
| </table> |
| |
| |
| |
| ## **TABLES** |
| |
| ### Dictionary {#Dictionary data-text="Dictionary"} |
| |
| |
| *Defined in [fuchsia.data/data.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=15)* |
| <p>A dictionary is a sequence of key/value pairs. |
| Keys must be unique and sorted in lexicographically increasing order.</p> |
| |
| <table> |
| <tr><th>Ordinal</th><th>Field</th><th>Type</th><th>Description</th></tr> |
| <tr id="Dictionary.entries"> |
| <td><h3 id="Dictionary.entries" class="add-link hide-from-toc">1</h3></td> |
| <td><code>entries</code></td> |
| <td> |
| <code>vector<<a class='link' href='#DictionaryEntry'>DictionaryEntry</a>>[1024]</code> |
| </td> |
| <td></td> |
| </tr> |
| </table> |
| |
| |
| ## **UNIONS** |
| |
| ### DictionaryValue [flexible](/fuchsia-src/reference/fidl/language/language.md#strict-vs-flexible){:.fidl-attribute} {#DictionaryValue data-text="DictionaryValue"} |
| *Defined in [fuchsia.data/data.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=32)* |
| <p>A dictionary's value is a string, a list of strings, or a list of objects.</p> |
| <table> |
| <tr><th>Ordinal</th><th>Variant</th><th>Type</th><th>Description</th></tr> |
| <tr id="DictionaryValue.str"> |
| <td><h3 id="DictionaryValue.str" class="add-link hide-from-toc">1</h3></td> |
| <td><code>str</code></td> |
| <td> |
| <code>string[1024]</code> |
| </td> |
| <td></td> |
| </tr> |
| <tr id="DictionaryValue.str_vec"> |
| <td><h3 id="DictionaryValue.str_vec" class="add-link hide-from-toc">2</h3></td> |
| <td><code>str_vec</code></td> |
| <td> |
| <code>vector<string>[1024]</code> |
| </td> |
| <td></td> |
| </tr> |
| <tr id="DictionaryValue.obj_vec"> |
| <td><h3 id="DictionaryValue.obj_vec" class="add-link hide-from-toc">3</h3></td> |
| <td><code>obj_vec</code></td> |
| <td> |
| <code>vector<<a class='link' href='#Dictionary'>Dictionary</a>>[1024]</code> |
| </td> |
| <td></td> |
| </tr> |
| </table> |
| |
| |
| |
| ## **CONSTANTS** |
| |
| <table> |
| <tr><th>Name</th><th>Value</th><th>Type</th><th>Description</th></tr> |
| <tr id="MAX_KEY_LENGTH"> |
| <td><a href="https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=10">MAX_KEY_LENGTH</a></td> |
| <td> |
| <code>1024</code> |
| </td> |
| <td><code>uint32</code></td> |
| <td></td> |
| </tr> |
| <tr id="MAX_NUM_ENTRIES"> |
| <td><a href="https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=9">MAX_NUM_ENTRIES</a></td> |
| <td> |
| <code>1024</code> |
| </td> |
| <td><code>uint32</code></td> |
| <td></td> |
| </tr> |
| <tr id="MAX_NUM_VALUE_ITEMS"> |
| <td><a href="https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=8">MAX_NUM_VALUE_ITEMS</a></td> |
| <td> |
| <code>1024</code> |
| </td> |
| <td><code>uint32</code></td> |
| <td></td> |
| </tr> |
| <tr id="MAX_VALUE_LENGTH"> |
| <td><a href="https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.data/data.fidl;l=11">MAX_VALUE_LENGTH</a></td> |
| <td> |
| <code>1024</code> |
| </td> |
| <td><code>uint32</code></td> |
| <td></td> |
| </tr> |
| </table> |