pub struct DrawingTemplate {
pub settings: Drawing,
}Expand description
Drawing properties without anchors or record identity. Apply to an existing drawing of the same type; its coordinates, closed outline, name, notes, layer, post link and persistence identity stay intact.
Fields§
§settings: DrawingTool and reusable properties. Serialization omits anchors and record identity.
Implementations§
Source§impl DrawingTemplate
impl DrawingTemplate
Sourcepub fn from_drawing(drawing: &Drawing) -> Self
pub fn from_drawing(drawing: &Drawing) -> Self
Capture the properties of a selected drawing.
Trait Implementations§
Source§impl Clone for DrawingTemplate
impl Clone for DrawingTemplate
Source§fn clone(&self) -> DrawingTemplate
fn clone(&self) -> DrawingTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DrawingTemplate
impl Debug for DrawingTemplate
Source§impl<'de> Deserialize<'de> for DrawingTemplate
impl<'de> Deserialize<'de> for DrawingTemplate
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 DrawingTemplate
impl RefUnwindSafe for DrawingTemplate
impl Send for DrawingTemplate
impl Sync for DrawingTemplate
impl Unpin for DrawingTemplate
impl UnsafeUnpin for DrawingTemplate
impl UnwindSafe for DrawingTemplate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more