6#include "../datatypes/utf8.hpp"
7#include "../result.hpp"
26 MediaType(
const char* media_type) : value(media_type) {}
40 return "text/markdown";
47 return "model/gltf+json";
54 return "model/gltf-binary";
78 value = std::move(value_);
82 MediaType(std::string value_) : value(std::move(value_)) {}
84 MediaType& operator=(std::string value_) {
85 value = std::move(value_);
101 struct Loggable<components::MediaType> {
102 static constexpr const char Name[] =
"rerun.components.MediaType";
105 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
106 return Loggable<rerun::datatypes::Utf8>::arrow_datatype();
110 static Result<std::shared_ptr<arrow::Array>> to_arrow(
111 const components::MediaType* instances,
size_t num_instances
113 return Loggable<rerun::datatypes::Utf8>::to_arrow(&instances->value, num_instances);
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:75
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:21
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:21