pub enum FieldType {
SlideNumber,
DateTime,
DateTime1,
DateTime2,
DateTime3,
Footer,
Custom(String),
}Expand description
字段类型(<a:fld type="...">)。
对标 python-pptx 中字段类型的常用子集。
OOXML 中 type 属性的取值较多,这里枚举最常见的几种。
Variants§
SlideNumber
幻灯片编号(type="slidenum")。
DateTime
日期时间(type="datetime"),使用默认格式。
DateTime1
日期时间格式 1(type="datetime1",如 1/1/2024)。
DateTime2
日期时间格式 2(type="datetime2",如 Monday, January 1, 2024)。
DateTime3
日期时间格式 3(type="datetime3",如 January 1, 2024)。
页脚(type="footer")。
Custom(String)
自定义字段类型(任意字符串)。
Implementations§
Trait Implementations§
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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