pub struct DefaultElementProxy {
pub element_name: String,
pub attributes: Vec<(String, String)>,
}Expand description
默认元素代理。
对应 Java: org.ofdrw.core.DefaultElementProxy
提供 OfdElement trait 的默认包装行为,将底层 XML 元素代理为 OFD 元素。
在 Java 版中用于包装 XML DOM 节点;Rust 版中用于需要代理行为的场景。
Fields§
§element_name: String元素名称。
attributes: Vec<(String, String)>属性列表。
Implementations§
Trait Implementations§
Source§impl Clone for DefaultElementProxy
impl Clone for DefaultElementProxy
Source§fn clone(&self) -> DefaultElementProxy
fn clone(&self) -> DefaultElementProxy
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 moreSource§impl Debug for DefaultElementProxy
impl Debug for DefaultElementProxy
Source§impl OfdElement for DefaultElementProxy
impl OfdElement for DefaultElementProxy
Source§fn ofd_element_name(&self) -> &'static str
fn ofd_element_name(&self) -> &'static str
获取 OFD XML 元素名称(不含命名空间前缀)。
Source§fn to_ofd_xml(&self) -> String
fn to_ofd_xml(&self) -> String
序列化为 OFD XML 字符串(含命名空间前缀)。
Auto Trait Implementations§
impl Freeze for DefaultElementProxy
impl RefUnwindSafe for DefaultElementProxy
impl Send for DefaultElementProxy
impl Sync for DefaultElementProxy
impl Unpin for DefaultElementProxy
impl UnsafeUnpin for DefaultElementProxy
impl UnwindSafe for DefaultElementProxy
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