pub struct Skeleton {
pub variant: SkeletonVariant,
pub base_color: String,
pub shimmer_color: String,
pub border_radius: f32,
pub speed: f32,
pub lines: u32,
pub line_height: f32,
pub line_gap: f32,
pub timing: TimingConfig,
pub style: CssStyle,
pub timeline: Vec<TimelineStep>,
pub stagger: Option<f32>,
}skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Fields§
§variant: SkeletonVariantskeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
base_color: Stringskeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
shimmer_color: Stringskeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
border_radius: f32skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
speed: f32skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
lines: u32skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Number of text lines to render (only for text variant).
line_height: f32skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Line height for text variant.
line_gap: f32skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Gap between text lines.
timing: TimingConfigskeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
style: CssStyleskeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
timeline: Vec<TimelineStep>skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
stagger: Option<f32>skeleton is a frozen composition (issue #333). Compose a loading placeholder from a plain shape/card with a shimmer finish instead — see crates/rustmotion/skills/rules/composition-recipes.md and rules/text-polish.md’s shimmer. Kept for compatibility; scheduled for removal in a future major version via rustmotion migrate (#335).
Trait Implementations§
Source§impl Animatable for Skeleton
impl Animatable for Skeleton
fn animation_effects(&self) -> &[AnimationEffect]
fn timeline_steps(&self) -> &[TimelineStep]
Source§impl<'de> Deserialize<'de> for Skeleton
impl<'de> Deserialize<'de> for Skeleton
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>,
Source§impl JsonSchema for Skeleton
impl JsonSchema for Skeleton
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl Painter for Skeleton
impl Painter for Skeleton
fn paint_content( &self, canvas: &Canvas, layout: &BoxLayout, _props: &AnimatedProperties, ctx: &PaintCtx, )
fn intrinsic_size( &self, _available: AvailableSize, _ctx: &MeasureCtx, ) -> Option<(f32, f32)>
Auto Trait Implementations§
impl Freeze for Skeleton
impl RefUnwindSafe for Skeleton
impl Send for Skeleton
impl Sync for Skeleton
impl Unpin for Skeleton
impl UnsafeUnpin for Skeleton
impl UnwindSafe for Skeleton
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
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> ⓘ
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> ⓘ
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