pub enum AnimationInput {
Single(Animation),
Many(Vec<Animation>),
}Expand description
One animation or many. Serializes to the correct wire key (animation
or animations) — cannot be in an invalid “both set” state.
Variants§
Single(Animation)
One animation preset; serializes under key animation.
Many(Vec<Animation>)
Multiple animation presets; serializes under key animations.
Trait Implementations§
Source§impl Clone for AnimationInput
impl Clone for AnimationInput
Source§fn clone(&self) -> AnimationInput
fn clone(&self) -> AnimationInput
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 moreSource§impl Debug for AnimationInput
impl Debug for AnimationInput
Source§impl JsonSchema for AnimationInput
impl JsonSchema for AnimationInput
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 inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AnimationInput
impl PartialEq for AnimationInput
impl Eq for AnimationInput
impl StructuralPartialEq for AnimationInput
Auto Trait Implementations§
impl Freeze for AnimationInput
impl RefUnwindSafe for AnimationInput
impl Send for AnimationInput
impl Sync for AnimationInput
impl Unpin for AnimationInput
impl UnsafeUnpin for AnimationInput
impl UnwindSafe for AnimationInput
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.