ooxmlsdk 0.6.1

Open XML SDK for Rust
Documentation
//
// -----------------------------------------------------------------------------
//  THIS FILE WAS @generated AUTOMATICALLY. DO NOT MODIFY THIS FILE MANUALLY.
// -----------------------------------------------------------------------------
//

#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash, ooxmlsdk_derive::SdkEnum)]
pub enum XsiTypeValue {
  #[sdk(rename = "dcterms:W3CDTF")]
  #[default]
  DctermsW3cdtf,
}
/// Core File Properties.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "cp:CT_CoreProperties/cp:coreProperties")]
pub struct CoreProperties {
  pub xmlns: Vec<crate::common::XmlNamespaceDecl>,
  pub xml_header: crate::common::XmlHeaderType,
  /// cp:category
  #[sdk(text_child(qname = "cp:CT_Category/cp:category"))]
  pub category: Option<crate::simple_type::StringValue>,
  /// cp:contentStatus
  #[sdk(text_child(qname = "cp:CT_ContentStatus/cp:contentStatus"))]
  pub content_status: Option<crate::simple_type::StringValue>,
  /// dcterms:created
  #[sdk(child(qname = "dcterms:CT_Created/dcterms:created"))]
  pub created: Option<Created>,
  /// dc:creator
  #[sdk(text_child(qname = "dc:CT_Creator/dc:creator"))]
  pub creator: Option<crate::simple_type::StringValue>,
  /// dc:description
  #[sdk(text_child(qname = "dc:CT_Description/dc:description"))]
  pub description: Option<crate::simple_type::StringValue>,
  /// dc:identifier
  #[sdk(text_child(qname = "dc:CT_Identifier/dc:identifier"))]
  pub identifier: Option<crate::simple_type::StringValue>,
  /// cp:keywords
  #[sdk(child(qname = "cp:CT_Keywords/cp:keywords"))]
  pub keywords: Option<Keywords>,
  /// dc:language
  #[sdk(text_child(qname = "dc:CT_Language/dc:language"))]
  pub language: Option<crate::simple_type::StringValue>,
  /// cp:lastModifiedBy
  #[sdk(text_child(qname = "cp:CT_LastModifiedBy/cp:lastModifiedBy"))]
  pub last_modified_by: Option<crate::simple_type::StringValue>,
  /// cp:lastPrinted
  #[sdk(text_child(qname = "cp:CT_LastPrinted/cp:lastPrinted"))]
  pub last_printed: Option<crate::simple_type::StringValue>,
  /// dcterms:modified
  #[sdk(child(qname = "dcterms:CT_Modified/dcterms:modified"))]
  pub modified: Option<Modified>,
  /// cp:revision
  #[sdk(text_child(qname = "cp:CT_Revision/cp:revision"))]
  pub revision: Option<crate::simple_type::StringValue>,
  /// dc:subject
  #[sdk(text_child(qname = "dc:CT_Subject/dc:subject"))]
  pub subject: Option<crate::simple_type::StringValue>,
  /// dc:title
  #[sdk(text_child(qname = "dc:CT_Title/dc:title"))]
  pub title: Option<crate::simple_type::StringValue>,
  /// cp:version
  #[sdk(text_child(qname = "cp:CT_Version/cp:version"))]
  pub version: Option<crate::simple_type::StringValue>,
}
/// cp:category
pub type Category = crate::simple_type::StringValue;
/// cp:contentStatus
pub type ContentStatus = crate::simple_type::StringValue;
/// dcterms:created
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "dcterms:CT_Created/dcterms:created")]
pub struct Created {
  /// type
  #[sdk(attr(qname = "xsi:type"))]
  pub xsi_type: Option<XsiTypeValue>,
  #[sdk(text)]
  pub xml_content: Option<crate::simple_type::StringValue>,
}
/// dc:creator
pub type Creator = crate::simple_type::StringValue;
/// dc:description
pub type Description = crate::simple_type::StringValue;
/// dc:identifier
pub type Identifier = crate::simple_type::StringValue;
/// dc:language
pub type Language = crate::simple_type::StringValue;
/// cp:lastModifiedBy
pub type LastModifiedBy = crate::simple_type::StringValue;
/// cp:lastPrinted
pub type LastPrinted = crate::simple_type::StringValue;
/// dcterms:modified
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "dcterms:CT_Modified/dcterms:modified")]
pub struct Modified {
  /// type
  #[sdk(attr(qname = "xsi:type"))]
  pub xsi_type: Option<XsiTypeValue>,
  #[sdk(text)]
  pub xml_content: Option<crate::simple_type::StringValue>,
}
/// cp:revision
pub type Revision = crate::simple_type::StringValue;
/// dc:subject
pub type Subject = crate::simple_type::StringValue;
/// dc:title
pub type Title = crate::simple_type::StringValue;
/// cp:version
pub type Version = crate::simple_type::StringValue;
/// Keywords.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "cp:CT_Keywords/cp:keywords")]
pub struct Keywords {
  /// lang
  #[sdk(attr(qname = "xml:lang"))]
  pub lang: Option<crate::simple_type::StringValue>,
  #[sdk(text)]
  pub xml_content: Option<crate::simple_type::StringValue>,
  /// cp:value
  #[sdk(child(qname = "cp:CT_Keyword/cp:value"))]
  pub value: Vec<Keyword>,
}
/// Keyword.
#[derive(Clone, Debug, Default, PartialEq, ooxmlsdk_derive::SdkType)]
#[sdk(qname = "cp:CT_Keyword/cp:value")]
pub struct Keyword {
  /// lang
  #[sdk(attr(qname = "xml:lang"))]
  pub lang: Option<crate::simple_type::StringValue>,
  #[sdk(text)]
  pub xml_content: Option<crate::simple_type::StringValue>,
}