pub struct Previews {
pub interval: Duration,
pub tile_width: u32,
pub tile_height: u32,
pub columns: u32,
pub rows: u32,
pub count: u32,
pub sheets: Vec<ArtworkId>,
}Expand description
An item’s previews: what GetPreviews answers once they are made.
Fields§
§interval: DurationTile i is the picture at about i × interval (the keyframe
at or just before it). interval_ms on the wire.
tile_width: u32§tile_height: u32§columns: u32Tiles across a sheet.
rows: u32Tiles down a sheet.
count: u32Tiles in all. The last sheet is filled only this far.
sheets: Vec<ArtworkId>The sheets, in order: tiles 0..columns × rows are on the first.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Previews
impl<'de> Deserialize<'de> for Previews
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
impl Eq for Previews
impl StructuralPartialEq for Previews
Auto Trait Implementations§
impl Forget for Previews
impl Freeze for Previews
impl Move for Previews
impl RefUnwindSafe for Previews
impl Send for Previews
impl Sync for Previews
impl Unpin for Previews
impl UnsafeUnpin for Previews
impl UnwindSafe for Previews
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