pub struct AnimationMetadata {
pub id: AnimationId,
pub name: String,
pub description: String,
pub is_premium: bool,
pub publish_at: Option<DateTime<Utc>>,
pub styles: Vec<AnimationStyleId>,
pub kind: AnimationKind,
pub is_looping: bool,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
Over the wire representation of an animation’s metadata.
Fields§
§id: AnimationId
The animation’s ID.
name: String
The name of the animation.
description: String
The description of the animation.
Is the animation premium?
publish_at: Option<DateTime<Utc>>
When the animation should be considered published (if at all).
styles: Vec<AnimationStyleId>
The styles associated with the animation.
kind: AnimationKind
What kind of animation this is.
is_looping: bool
Should the animation loop?
created_at: DateTime<Utc>
When the animation was originally created.
updated_at: Option<DateTime<Utc>>
When the animation was last updated.
Trait Implementations§
Source§impl Debug for AnimationMetadata
impl Debug for AnimationMetadata
Source§impl<'de> Deserialize<'de> for AnimationMetadata
impl<'de> Deserialize<'de> for AnimationMetadata
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
Auto Trait Implementations§
impl Freeze for AnimationMetadata
impl RefUnwindSafe for AnimationMetadata
impl Send for AnimationMetadata
impl Sync for AnimationMetadata
impl Unpin for AnimationMetadata
impl UnwindSafe for AnimationMetadata
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