pub enum ShapeKind {
Shape,
Picture {
fill: PictureFill,
},
Group {
children: Vec<Shape>,
child: Xfrm,
},
Connector {
start: Option<(ShapeId, u32)>,
end: Option<(ShapeId, u32)>,
},
Table(Table),
Chart(Box<Chart>),
Media(MediaClip),
Ink {
strokes: Vec<InkStroke>,
},
Opaque {
xml: String,
preview: Option<MediaId>,
label: String,
},
}Variants§
Shape
An autoshape or text box.
Picture
Fields
§
fill: PictureFillGroup
Connector
Table(Table)
Chart(Box<Chart>)
Media(MediaClip)
Ink
Opaque
Something we read but don’t model (SmartArt without fallback, OLE…): its XML is kept and its fallback picture, if any, is shown.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShapeKind
impl<'de> Deserialize<'de> for ShapeKind
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 StructuralPartialEq for ShapeKind
Auto Trait Implementations§
impl Freeze for ShapeKind
impl RefUnwindSafe for ShapeKind
impl Send for ShapeKind
impl Sync for ShapeKind
impl Unpin for ShapeKind
impl UnsafeUnpin for ShapeKind
impl UnwindSafe for ShapeKind
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