pub struct PptxPackage {Show 13 fields
pub presentation: Presentation,
pub slides: Vec<Slide>,
pub layouts: Vec<SlideLayout>,
pub masters: Vec<SlideMaster>,
pub themes: Vec<ThemePart>,
pub charts: Vec<ChartPart>,
pub diagram_drawings: Vec<DiagramDrawing>,
pub media: Vec<MediaPart>,
pub table_styles: TableStyleList,
pub comment_authors: Vec<CommentAuthor>,
pub comments: Vec<Comment>,
pub comment_flavor: Option<CommentFlavor>,
pub relationships: BTreeMap<String, Vec<Relationship>>,
/* private fields */
}Fields§
§presentation: Presentation§slides: Vec<Slide>§layouts: Vec<SlideLayout>§masters: Vec<SlideMaster>§themes: Vec<ThemePart>§charts: Vec<ChartPart>Absent from packages serialized before charts were parsed.
diagram_drawings: Vec<DiagramDrawing>The drawing PowerPoint saves beside each SmartArt graphic.
media: Vec<MediaPart>§table_styles: TableStyleListAbsent from packages serialized before table styles were parsed.
comments: Vec<Comment>§comment_flavor: Option<CommentFlavor>§relationships: BTreeMap<String, Vec<Relationship>>Implementations§
Source§impl PptxPackage
impl PptxPackage
pub fn part_bytes(&self, path: &str) -> Option<&[u8]>
Sourcepub fn has_parts(&self) -> bool
pub fn has_parts(&self) -> bool
False for packages recovered from a collaboration update, which carry the parsed model but not the raw part bytes.
Sourcepub fn slide_source(&self, part_path: &str) -> Option<&SlideSource>
pub fn slide_source(&self, part_path: &str) -> Option<&SlideSource>
Where a slide part’s shapes sit in its XML and what the model leaves out; None for
packages not parsed from file bytes.
Sourcepub fn notes_source(&self, slide_part_path: &str) -> Option<&NotesSource>
pub fn notes_source(&self, slide_part_path: &str) -> Option<&NotesSource>
The notes page of the slide at slide_part_path, when the package was parsed with one.
Sourcepub fn models_connectors(&self) -> bool
pub fn models_connectors(&self) -> bool
Whether source ordinals include connectors.
pub fn replace_part(&mut self, path: &str, bytes: Vec<u8>) -> bool
Trait Implementations§
Source§impl Clone for PptxPackage
impl Clone for PptxPackage
Source§impl Debug for PptxPackage
impl Debug for PptxPackage
Source§impl Default for PptxPackage
impl Default for PptxPackage
Source§impl<'de> Deserialize<'de> for PptxPackage
impl<'de> Deserialize<'de> for PptxPackage
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
Source§impl PartialEq for PptxPackage
impl PartialEq for PptxPackage
Source§impl Serialize for PptxPackage
impl Serialize for PptxPackage
impl StructuralPartialEq for PptxPackage
Auto Trait Implementations§
impl Freeze for PptxPackage
impl RefUnwindSafe for PptxPackage
impl Send for PptxPackage
impl Sync for PptxPackage
impl Unpin for PptxPackage
impl UnsafeUnpin for PptxPackage
impl UnwindSafe for PptxPackage
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