pub struct Sld {
pub id: u32,
pub layout_rid: String,
pub name: String,
pub background: Option<SlideBackground>,
pub shapes: Vec<SlideShape>,
pub notes: Option<TextBody>,
pub transition: Option<Transition>,
pub ext_lst: Option<ExtensionList>,
}Expand description
一张幻灯片。
Fields§
§id: u32内部 ID(id="256" 等)。
layout_rid: Stringslide 关系 id(指向 slideLayoutN.xml)。
name: String用户可读的 slide 名(对应 <p:sld>/<p:cSld>/@name,可选)。
对标 python-pptx Slide.name。空字符串表示未命名。
序列化时若非空,写到 <p:cSld name="...">。
background: Option<SlideBackground>幻灯片背景(<p:bg>)。None 表示遵循母版背景。
shapes: Vec<SlideShape>幻灯片中的形状列表。
notes: Option<TextBody>备注(notes)。
transition: Option<Transition>幻灯片过渡(<p:transition>,可选)。
ext_lst: Option<ExtensionList>形状树(spTree)末尾的扩展列表。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sld
impl RefUnwindSafe for Sld
impl Send for Sld
impl Sync for Sld
impl Unpin for Sld
impl UnsafeUnpin for Sld
impl UnwindSafe for Sld
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