pub struct Sticker {
pub filename: String,
pub transform_matrix: [f64; 16],
pub hide: bool,
pub hide_toggle: Option<HideToggle>,
pub animation: Option<Animation>,
pub audio_filename: Option<String>,
pub override_size: Option<(f64, f64)>,
pub kind: StickerKind,
}
Fields§
§filename: String
§transform_matrix: [f64; 16]
§hide: bool
hide and hide_toggle are mapped from the top sections in “Houdini”: HideOnTap, ShowOnTap, and ToggleOnTap start out hidden
hide_toggle: Option<HideToggle>
toggle hidden state
animation: Option<Animation>
animation options are mapped from the bottom animation section
audio_filename: Option<String>
§override_size: Option<(f64, f64)>
override the size
kind: StickerKind
the original sticker kind ideally we’d ditch this but it’s helpful for debugging
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sticker
impl<'de> Deserialize<'de> for Sticker
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 Sticker
impl RefUnwindSafe for Sticker
impl Send for Sticker
impl Sync for Sticker
impl Unpin for Sticker
impl UnwindSafe for Sticker
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