pub struct CommonData {
pub max_unit_id: StId,
pub page_area: CtPageArea,
pub public_res: Vec<StLoc>,
pub document_res: Vec<StLoc>,
pub template_pages: Vec<CtTemplatePage>,
pub default_cs: Option<StRefId>,
}Expand description
CT_CommonData:文档公共数据(见表 6)。
Fields§
§max_unit_id: StId当前文档中所有对象使用标识的最大值,初始值为 0(必选)。
page_area: CtPageArea指定该文档页面区域的默认大小和位置(必选)。
public_res: Vec<StLoc>公共资源序列,每个节点指向包内的一个资源描述文档(可选)。
document_res: Vec<StLoc>文档资源序列,每个节点指向包内的一个资源描述文档(可选)。
template_pages: Vec<CtTemplatePage>模板页序列(可选)。
default_cs: Option<StRefId>引用资源文件中定义的默认颜色空间标识,缺省采用 RGB(可选)。
Trait Implementations§
Source§impl Clone for CommonData
impl Clone for CommonData
Source§fn clone(&self) -> CommonData
fn clone(&self) -> CommonData
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 CommonData
impl Debug for CommonData
Source§impl<'de> Deserialize<'de> for CommonData
impl<'de> Deserialize<'de> for CommonData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommonData
impl RefUnwindSafe for CommonData
impl Send for CommonData
impl Sync for CommonData
impl Unpin for CommonData
impl UnsafeUnpin for CommonData
impl UnwindSafe for CommonData
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