# inspect::VmoOptions

`#include <component.h>`

Options for publishing a VMO.

## Summary

This spawns a fuchsia.inspect.Tree server whose content is this VMO. It does not support lazy nodes.

The only service method is a live VMO. If you prefer to have copy semantics, copy the VMO before serving. This is because copying the VMO could be expensive.

| ### Public attributes ||
|---|---|
| `https://fuchsia.dev/reference/cpp/struct/inspect/vmo-options#structinspect_1_1_vmo_options_1a9549062fb74e6995aca791a2a2086533 = std::nullopt` | `std::optional< https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< fuchsia_inspect::InspectSink > >` Provide a [fidl::ClientEnd](https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end), useful if `fuchsia.inspect.InspectSink` is not in the root namespace or is renamed. |
| `https://fuchsia.dev/reference/cpp/struct/inspect/vmo-options#structinspect_1_1_vmo_options_1afaf5be83b9ab30ae4ff6c1047e20b539 = std::nullopt` | `std::optional< std::string >` Provide a name to appear in the tree's Inspect Metadata. |

## Public attributes

### client_end

```c++
std::optional< fidl::ClientEnd< fuchsia_inspect::InspectSink > > inspect::VmoOptions::client_end = std::nullopt
```
Provide a [fidl::ClientEnd](https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end), useful if `fuchsia.inspect.InspectSink` is not in the root namespace or is renamed.

### tree_name

```c++
std::optional< std::string > inspect::VmoOptions::tree_name = std::nullopt
```
Provide a name to appear in the tree's Inspect Metadata.

By default, it will be \`fuchsia.inspect::DEFAULT_TREE_NAME