pub struct ChildComponent {
pub component: Component,
pub position: Option<PositionMode>,
pub x: Option<f32>,
pub y: Option<f32>,
pub z_index: Option<i32>,
pub id: Option<String>,
pub bleed: bool,
}Fields§
§component: Component§position: Option<PositionMode>§x: Option<f32>§y: Option<f32>§z_index: Option<i32>§id: Option<String>Author-declared name for this node, unique within its own scene
(issue #328). Read back by other nodes’ expressions through
node("id", "prop") — see rustmotion_core::engine::deps’s module
doc for the per-frame dependency graph this feeds, and the “unique
within its scene” constraint that graph enforces at build time
(DepsError::DuplicateId). Optional: a node with no id simply
cannot be referenced by another one’s expressions, and is otherwise
unaffected.
bleed: boolDeclares that this component’s job is to extend past the frame edge
(e.g. a radial glow used as a base layer). Top-level field, not a
style property — CssStyle is deny_unknown_fields and belongs to
no one this wave. Defaults to false: no existing scenario changes
behaviour. Exempts only viewport_overflow and animated_text_overflow
(see crates/rustmotion/src/cli/commands/geometry.rs); it does NOT
exempt content_overflows_box — content larger than its own box stays
a reported defect regardless of bleed. Applies to this component
only: a bled container does not suppress checks on its children, since
each child is its own ChildComponent with its own bleed flag.
Implementations§
Trait Implementations§
Source§impl Debug for ChildComponent
impl Debug for ChildComponent
Source§impl<'de> Deserialize<'de> for ChildComponent
impl<'de> Deserialize<'de> for ChildComponent
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 ChildComponent
impl JsonSchema for ChildComponent
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 moreAuto Trait Implementations§
impl Freeze for ChildComponent
impl RefUnwindSafe for ChildComponent
impl Send for ChildComponent
impl Sync for ChildComponent
impl Unpin for ChildComponent
impl UnsafeUnpin for ChildComponent
impl UnwindSafe for ChildComponent
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