Skip to main content

CtDocInfo

Struct CtDocInfo 

Source
pub struct CtDocInfo {
Show 13 fields pub doc_id: Option<String>, pub title: Option<String>, pub author: Option<String>, pub subject: Option<String>, pub abstract_: Option<String>, pub creation_date: Option<String>, pub mod_date: Option<String>, pub doc_usage: Option<String>, pub cover: Option<StLoc>, pub keywords: Option<Keywords>, pub creator: Option<String>, pub creator_version: Option<String>, pub custom_datas: Option<CustomDatas>,
}
Expand description

CT_DocInfo:文档元数据(见表 4)。

Fields§

§doc_id: Option<String>

采用 UUID 算法生成的由 32 个字符组成的文件标识(可选)。

§title: Option<String>

文档标题,可与文件名不同(可选)。

§author: Option<String>

文档作者(可选)。

§subject: Option<String>

文档主题(可选)。

§abstract_: Option<String>

文档摘要与注释(可选)。

§creation_date: Option<String>

文档创建日期(可选)。

§mod_date: Option<String>

文档最近修改日期(可选)。

§doc_usage: Option<String>

文档分类:Normal/EBook/ENewsPaper/EMagzine,默认 Normal(可选)。

§cover: Option<StLoc>

文档封面,指向一个图片文件(可选)。

§keywords: Option<Keywords>

关键词集合(可选)。

§creator: Option<String>

创建文档的应用程序(可选)。

§creator_version: Option<String>

创建文档的应用程序的版本信息(可选)。

§custom_datas: Option<CustomDatas>

用户自定义元数据集合(可选)。

Trait Implementations§

Source§

impl Clone for CtDocInfo

Source§

fn clone(&self) -> CtDocInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CtDocInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CtDocInfo

Source§

fn default() -> CtDocInfo

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CtDocInfo

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CtDocInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.