pub struct TemplatePageEntity {
pub id: String,
pub name: Option<String>,
pub z_order: TemplateZOrder,
pub base_loc: String,
}Expand description
页面模板对象实体,描述一个模板页面的元数据和内容引用。
对应 Java: org.ofdrw.reader.model.TemplatePageEntity
Fields§
§id: String模板 ID。
name: Option<String>模板页名称(可选)。
z_order: TemplateZOrder模板页面的 Z 序(绘制顺序)。
base_loc: String指向模板页内容描述文件的路径。
Implementations§
Source§impl TemplatePageEntity
impl TemplatePageEntity
Sourcepub fn new(
id: impl Into<String>,
z_order: TemplateZOrder,
base_loc: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, z_order: TemplateZOrder, base_loc: impl Into<String>, ) -> Self
创建新的模板页面实体。
Sourcepub fn set_z_order(&mut self, z_order: TemplateZOrder)
pub fn set_z_order(&mut self, z_order: TemplateZOrder)
设置 Z 序。
Trait Implementations§
Source§impl Clone for TemplatePageEntity
impl Clone for TemplatePageEntity
Source§fn clone(&self) -> TemplatePageEntity
fn clone(&self) -> TemplatePageEntity
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 TemplatePageEntity
impl RefUnwindSafe for TemplatePageEntity
impl Send for TemplatePageEntity
impl Sync for TemplatePageEntity
impl Unpin for TemplatePageEntity
impl UnsafeUnpin for TemplatePageEntity
impl UnwindSafe for TemplatePageEntity
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