use arrow2_convert::{ArrowDeserialize, ArrowField, ArrowSerialize};
#[derive(Clone, Debug, ArrowField, ArrowSerialize, ArrowDeserialize, PartialEq, Eq)]
pub struct TextBox {
pub body: String, }
impl TextBox {
#[inline]
pub fn new(body: impl Into<String>) -> Self {
Self { body: body.into() }
}
#[inline]
pub fn from_body(body: impl Into<String>) -> Self {
Self { body: body.into() }
}
}
impl re_log_types::LegacyComponent for TextBox {
#[inline]
fn legacy_name() -> re_log_types::ComponentName {
"rerun.text_box".into()
}
}
re_log_types::component_legacy_shim!(TextBox);