pub struct Scene {
pub duration: f64,
pub background: Option<BackgroundValue>,
pub children: Vec<Value>,
pub transition: Option<Transition>,
pub freeze_at: Option<f64>,
pub layout: Option<SceneLayout>,
pub animated_background: Vec<AnimatedBackground>,
pub camera: Option<Camera>,
pub world_position: Option<WorldPosition>,
pub persist: bool,
pub effects: Vec<PostEffect>,
pub resolved_background: ResolvedBackground,
}Fields§
§duration: f64§background: Option<BackgroundValue>Unified background: color string, animated entry (with optional $ref), or array.
children: Vec<Value>§transition: Option<Transition>§freeze_at: Option<f64>§layout: Option<SceneLayout>Flex layout for automatic layer positioning
animated_background: Vec<AnimatedBackground>Legacy animated background (kept for backward compat)
camera: Option<Camera>Virtual camera with animatable x, y, zoom, rotation.
world_position: Option<WorldPosition>Position of this scene in the 2D world (used by world views).
persist: bool(world) Keep this scene visible after its time window ends.
effects: Vec<PostEffect>Post-processing effects applied to the full frame buffer after Skia renders. Effects are additive and applied in declaration order.
resolved_background: ResolvedBackgroundPost-resolution background (populated by include.rs, ignored by serde).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scene
impl<'de> Deserialize<'de> for Scene
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 Scene
impl JsonSchema for Scene
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 Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scene
impl UnwindSafe for Scene
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