pub struct Signatures {
pub max_sign_id: Option<String>,
pub signatures: Vec<Signature>,
}Expand description
签名列表根节点。
包含文档中所有数字签名和安全签章的注册信息。
Fields§
§max_sign_id: Option<String>安全标识的最大值(可选)。
作用与文档入口文件 Document.xml 中的 MaxID 相同,
推荐使用 sNNN 的编码方式,NNN 从 1 开始。
signatures: Vec<Signature>数字签名或安全签章在列表中的注册信息序列。
Implementations§
Source§impl Signatures
impl Signatures
Sourcepub fn max_sign_id(self, max_sign_id: impl Into<String>) -> Self
pub fn max_sign_id(self, max_sign_id: impl Into<String>) -> Self
设置安全标识的最大值。
Sourcepub fn add_signature(self, signature: Signature) -> Self
pub fn add_signature(self, signature: Signature) -> Self
添加签名注册信息。
Sourcepub fn to_xml_string(&self) -> String
pub fn to_xml_string(&self) -> String
序列化为 XML 字符串。
Trait Implementations§
Source§impl Clone for Signatures
impl Clone for Signatures
Source§fn clone(&self) -> Signatures
fn clone(&self) -> Signatures
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 Signatures
impl Debug for Signatures
Auto Trait Implementations§
impl Freeze for Signatures
impl RefUnwindSafe for Signatures
impl Send for Signatures
impl Sync for Signatures
impl Unpin for Signatures
impl UnsafeUnpin for Signatures
impl UnwindSafe for Signatures
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