pub enum Component {
Show 60 variants
AudioSpectrum(AudioSpectrum),
Text(Text),
Shape(Shape),
Image(Image),
Icon(Icon),
Svg(Svg),
Video(Video),
Gif(Gif),
Counter(Counter),
Cursor(Cursor),
Caption(Caption),
Codeblock(Codeblock),
Connector(Connector),
Avatar(Avatar),
AvatarGroup(AvatarGroup),
Arrow(Arrow),
Badge(Badge),
Callout(Callout),
Chart(Chart),
Comparison(Comparison),
Countdown(Countdown),
Divider(Divider),
DotMap(DotMap),
Gauge(Gauge),
GradientText(GradientText),
Heatmap(Heatmap),
Kbd(Kbd),
Line(Line),
List(List),
Lottie(Lottie),
Marquee(Marquee),
Mockup(Mockup),
Notification(Notification),
Particle(Particle),
PillNav(PillNav),
Progress(Progress),
QrCode(QrCode),
NumberWheel(NumberWheel),
SuccessCheck(SuccessCheck),
Pointer(Pointer),
Rating(Rating),
Skeleton(Skeleton),
Slider(Slider),
Sparkline(Sparkline),
Stat(Stat),
Stepper(Stepper),
Switch(Switch),
RichText(RichText),
Table(Table),
TagCloud(TagCloud),
Terminal(Terminal),
Timeline(Timeline),
Tooltip(Tooltip),
Treemap(Treemap),
Positioned(Positioned),
Flex(Flex),
Grid(Grid),
Card(Card),
Container(ContainerComponent),
Waveform(Waveform),
}Variants§
AudioSpectrum(AudioSpectrum)
Text(Text)
Shape(Shape)
Image(Image)
Icon(Icon)
Svg(Svg)
Video(Video)
Gif(Gif)
Counter(Counter)
Cursor(Cursor)
Caption(Caption)
Codeblock(Codeblock)
Connector(Connector)
Avatar(Avatar)
AvatarGroup(AvatarGroup)
Arrow(Arrow)
Badge(Badge)
Callout(Callout)
Chart(Chart)
Comparison(Comparison)
Countdown(Countdown)
Divider(Divider)
DotMap(DotMap)
Gauge(Gauge)
GradientText(GradientText)
Heatmap(Heatmap)
Kbd(Kbd)
Line(Line)
List(List)
Lottie(Lottie)
Marquee(Marquee)
Mockup(Mockup)
Notification(Notification)
Particle(Particle)
Progress(Progress)
QrCode(QrCode)
NumberWheel(NumberWheel)
SuccessCheck(SuccessCheck)
Pointer(Pointer)
Rating(Rating)
Skeleton(Skeleton)
Slider(Slider)
Sparkline(Sparkline)
Stat(Stat)
Stepper(Stepper)
Switch(Switch)
RichText(RichText)
Table(Table)
TagCloud(TagCloud)
Terminal(Terminal)
Timeline(Timeline)
Tooltip(Tooltip)
Treemap(Treemap)
Positioned(Positioned)
Flex(Flex)
Grid(Grid)
Card(Card)
Container(ContainerComponent)
Waveform(Waveform)
Implementations§
Source§impl Component
impl Component
pub fn as_animatable(&self) -> Option<&dyn Animatable>
pub fn as_timed(&self) -> Option<&dyn Timed>
pub fn as_styled(&self) -> &dyn Styled
Sourcepub fn as_painter(&self) -> Option<&dyn Painter>
pub fn as_painter(&self) -> Option<&dyn Painter>
Returns the Painter trait. All 51 components are migrated to the new pipeline; the dispatcher always uses Painter::paint_content.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Component
impl<'de> Deserialize<'de> for Component
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Component
impl JsonSchema for Component
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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