pub struct CT_Image {
pub id: u32,
pub boundary: String,
pub resource_id: u32,
pub interpolate: bool,
}Expand description
图像对象。
对应 Java: org.ofdrw.core.image.CT_Image
Fields§
§id: u32对象 ID。
boundary: String边界框 “x y width height”。
resource_id: u32资源 ID(引用 MultiMedia 中的图像资源)。
interpolate: bool是否插值绘制。
Implementations§
Trait Implementations§
impl StructuralPartialEq for CT_Image
Source§impl XmlElement for CT_Image
impl XmlElement for CT_Image
Source§fn element_name(&self) -> &'static str
fn element_name(&self) -> &'static str
对应 Java: org.ofdrw.core.image.CT_Image
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 CT_Image
impl RefUnwindSafe for CT_Image
impl Send for CT_Image
impl Sync for CT_Image
impl Unpin for CT_Image
impl UnsafeUnpin for CT_Image
impl UnwindSafe for CT_Image
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