pub struct Signature {
pub id: String,
pub sig_type: Option<SigType>,
pub relative: Option<String>,
pub base_loc: String,
}Expand description
数字签名或安全签章在列表中的注册信息。
每个签名或签章对应一个节点。
推荐使用 sNNN 的编码方式,NNN 从 1 开始。
Fields§
§id: String签名或签章的标识(必选)。
sig_type: Option<SigType>签名节点类型(可选),默认 Seal。
relative: Option<String>基于的签名 ID(可选,OFD 2.0)。 验证时应同时验证“基“签名。
base_loc: String指向包内的签名描述文件路径(必选)。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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