6#include "../datatypes/utf8.hpp"
7#include "../result.hpp"
32 MediaType(
const char* media_type) : value(media_type) {}
46 return "text/markdown";
53 return "model/gltf+json";
60 return "model/gltf-binary";
76 value = std::move(value_);
80 MediaType(std::string value_) : value(std::move(value_)) {}
82 MediaType& operator=(std::string value_) {
83 value = std::move(value_);
100 struct Loggable<components::MediaType> {
101 static constexpr const char Name[] =
"rerun.components.MediaType";
104 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
108 arrow::StringBuilder* builder,
const components::MediaType* elements,
113 static Result<std::shared_ptr<arrow::Array>> to_arrow(
114 const components::MediaType* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Datatype: A string of text, encoded as UTF-8.
Definition utf8.hpp:21