pub struct ComponentReflection {
pub docstring_md: &'static str,
pub deprecation_summary: Option<&'static str>,
pub custom_placeholder: Option<ArrayRef>,
pub datatype: DataType,
pub verify_arrow_array: fn(&dyn Array) -> DeserializationResult<()>,
}
Expand description
Information about a Rerun component
, generated by codegen.
Fields§
§docstring_md: &'static str
Markdown docstring for the component.
deprecation_summary: Option<&'static str>
If deprecated, this explains since when, and what to use instead.
custom_placeholder: Option<ArrayRef>
Custom placeholder value, used when not fallback was provided.
This is usually the default value of the component (if any), serialized.
Placeholders are useful as a base fallback value when displaying UI,
especially when it’s necessary to have a starting value for edit ui.
Typically, this is only used when FallbackProvider
s are not available.
If there’s no custom placeholder, a placeholder can be derived from the arrow datatype.
datatype: DataType
Datatype of the component.
verify_arrow_array: fn(&dyn Array) -> DeserializationResult<()>
Checks that the given Arrow array can be deserialized into a collection of Self
s.
Trait Implementations§
Source§impl Clone for ComponentReflection
impl Clone for ComponentReflection
Source§fn clone(&self) -> ComponentReflection
fn clone(&self) -> ComponentReflection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ComponentReflection
impl !RefUnwindSafe for ComponentReflection
impl Send for ComponentReflection
impl Sync for ComponentReflection
impl Unpin for ComponentReflection
impl !UnwindSafe for ComponentReflection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more