pub struct DocVersion {
pub doc_root: String,
pub file_list: Option<FileList>,
}Expand description
对应 Java: org.ofdrw.core.basicStructure.DocVersion
描述文档的一个版本,包含文档根路径和文件列表。
Fields§
§doc_root: String文档根路径(如 “Doc_0”)。
file_list: Option<FileList>该版本的文件列表。
Implementations§
Source§impl DocVersion
impl DocVersion
Sourcepub fn with_file_list(self, file_list: FileList) -> Self
pub fn with_file_list(self, file_list: FileList) -> Self
设置文件列表。
Sourcepub fn to_xml_string(&self) -> String
pub fn to_xml_string(&self) -> String
序列化为 XML 字符串。
Trait Implementations§
Source§impl Clone for DocVersion
impl Clone for DocVersion
Source§fn clone(&self) -> DocVersion
fn clone(&self) -> DocVersion
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 DocVersion
impl RefUnwindSafe for DocVersion
impl Send for DocVersion
impl Sync for DocVersion
impl Unpin for DocVersion
impl UnsafeUnpin for DocVersion
impl UnwindSafe for DocVersion
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