pub struct CT_Extension {
pub name: String,
pub version: String,
pub properties: Vec<Property>,
}Expand description
单个扩展。
对应 Java: org.ofdrw.core.extensions.CT_Extension
等价于 crate::extensions::CtExtension。
对应 Java: org.ofdrw.core.extendObj.CT_Extension
单个扩展定义,包含扩展名称、版本和属性列表。
Fields§
§name: String扩展名称。
version: String扩展版本。
properties: Vec<Property>扩展属性列表。
Implementations§
Source§impl CtExtension
impl CtExtension
Sourcepub fn with_property(self, prop: Property) -> Self
pub fn with_property(self, prop: Property) -> Self
添加属性(链式调用)。
Sourcepub fn push_property(&mut self, prop: Property)
pub fn push_property(&mut self, prop: Property)
添加属性。
Sourcepub fn to_xml_string(&self) -> String
pub fn to_xml_string(&self) -> String
序列化为 XML 字符串。
Trait Implementations§
Source§impl Clone for CtExtension
impl Clone for CtExtension
Source§fn clone(&self) -> CtExtension
fn clone(&self) -> CtExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CtExtension
impl RefUnwindSafe for CtExtension
impl Send for CtExtension
impl Sync for CtExtension
impl Unpin for CtExtension
impl UnsafeUnpin for CtExtension
impl UnwindSafe for CtExtension
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