pub struct Field {
pub id: String,
pub field_type: FieldType,
pub properties: RunProperties,
pub text: String,
}Expand description
字段(<a:fld>)。
对标 python-pptx 中字段对象。字段是段落中特殊的“动态文本“, 如幻灯片编号、日期时间、页脚等,由 PowerPoint 在渲染时自动填充。
§OOXML 结构
<a:fld id="{GUID}" type="slidenum">
<a:rPr .../>
<a:t>1</a:t>
</a:fld>Fields§
§id: String字段 GUID(id 属性)。PowerPoint 用此关联字段实例。
field_type: FieldType字段类型(type 属性)。
properties: RunPropertiesRun 属性(<a:rPr>)。
text: String字段文本(<a:t>)——渲染前的占位文本。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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