Expand description
§rdocx-opc
rdocx-opc is a deprecated compatibility shim for the shared
oxml-opc package layer. Existing code can keep
its old imports while migrating.
§Use it when
Use this crate only while migrating an existing rdocx-opc dependency. New
code should depend on oxml-opc directly.
§Relationship
The retained types are exact re-exports. Word-specific package construction
belongs in the high-level rdocx facade.
§Example
use rdocx_opc::OpcPackage;
let package = OpcPackage::new();
assert!(package.parts.is_empty());[dependencies]
rdocx-opc = "0.6"For new code, replace both the dependency and the import with oxml-opc and
oxml_opc.
Modules§
- content_
types - Parsing and writing of
[Content_Types].xml. - relationship
- Parsing and writing of
.relsrelationship files.
Structs§
- Content
Types - Parsed
[Content_Types].xml. - OpcPackage
- An in-memory representation of an OPC package (ZIP archive).
- Package
Part - A single part within the OPC package.
- Relationship
- A single relationship entry.
- Relationships
- A collection of relationships parsed from a
.relsfile.
Enums§
- Content
Type - A single content type entry, either a Default by extension or an Override by part name.
- OpcError