pub struct Drawing {
pub scale: f32,
pub translation_x: f32,
pub translation_y: f32,
pub strokes: Vec<Stroke>,
pub theme: Option<HashMap<ColorAlias, ColorRGB>>,
}Fields§
§scale: f32§translation_x: f32§translation_y: f32§strokes: Vec<Stroke>§theme: Option<HashMap<ColorAlias, ColorRGB>>Trait Implementations§
source§impl<'de> Deserialize<'de> for Drawing
impl<'de> Deserialize<'de> for Drawing
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 Drawing
impl RefUnwindSafe for Drawing
impl Send for Drawing
impl Sync for Drawing
impl Unpin for Drawing
impl UnwindSafe for Drawing
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)