pub struct Appearance {
pub id: String,
pub appearance_type: String,
pub resource_path: Option<String>,
}Expand description
对应 Java: org.ofdrw.core.annotation.Appearance
注释的静态外观,描述注释在页面上的绘制方式。
Fields§
§id: String外观标识符。
appearance_type: String外观类型(Normal / Rollover / Down)。
resource_path: Option<String>外观资源文件路径。
Implementations§
Trait Implementations§
Source§impl Clone for Appearance
impl Clone for Appearance
Source§fn clone(&self) -> Appearance
fn clone(&self) -> Appearance
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 Appearance
impl Debug for Appearance
Source§impl PartialEq for Appearance
impl PartialEq for Appearance
impl StructuralPartialEq for Appearance
Source§impl XmlElement for Appearance
impl XmlElement for Appearance
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: org.ofdrw.core.annotation.Appearance
Source§fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
fn from_xml(node: &XmlNode) -> Result<Self, XmlElementError>
从节点树解析(对应 ofdrw 解析侧;quick-xml 产物)。 Read more
Source§fn child_nodes(&self) -> Vec<XmlNode>
fn child_nodes(&self) -> Vec<XmlNode>
子元素(作为
XmlNode 提供,便于嵌套序列化)。Source§fn text_content(&self) -> Option<&str>
fn text_content(&self) -> Option<&str>
文本内容(简单文本元素)。
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnsafeUnpin for Appearance
impl UnwindSafe for Appearance
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