pub struct PluginRecord {
pub source: PluginSource,
pub framework: String,
pub package: String,
pub version: String,
pub crate_name: String,
pub checksum: String,
pub mode: PluginMode,
pub signature: Option<String>,
pub public_key_fingerprint: Option<String>,
pub revocation_list: Option<String>,
}Expand description
One parsed plugin lock line, kept as typed fields. 一条解析后的插件锁记录,保留为带类型的字段。
Fields§
§source: PluginSourceTrust lane the lock line declares. 锁记录声明的信任通道。
framework: StringTarget framework this record was written for. 本记录针对的目标框架。
package: StringPackage name of the plugin. 插件的包名。
version: StringPlugin version exactly as the lock spelled it. 锁文件中原样写下的插件版本。
crate_name: StringRust crate that carries the plugin implementation. 承载插件实现的 Rust crate。
checksum: StringDigest the plugin bytes must match. 插件字节必须匹配的摘要。
mode: PluginModeWhether the plugin extends or replaces. 插件是扩展还是替换。
signature: Option<String>Recorded signature, absent when the lock line carried none. 记录的签名;锁记录未携带时为 None。
public_key_fingerprint: Option<String>Recorded signing-key fingerprint, when present. 记录的签名密钥指纹;存在时才有值。
revocation_list: Option<String>Recorded revocation-list snapshot, when present. 记录的撤销列表快照;存在时才有值。
Trait Implementations§
Source§impl Clone for PluginRecord
impl Clone for PluginRecord
Source§fn clone(&self) -> PluginRecord
fn clone(&self) -> PluginRecord
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 PluginRecord
impl Debug for PluginRecord
impl Eq for PluginRecord
Source§impl PartialEq for PluginRecord
impl PartialEq for PluginRecord
impl StructuralPartialEq for PluginRecord
Auto Trait Implementations§
impl Freeze for PluginRecord
impl RefUnwindSafe for PluginRecord
impl Send for PluginRecord
impl Sync for PluginRecord
impl Unpin for PluginRecord
impl UnsafeUnpin for PluginRecord
impl UnwindSafe for PluginRecord
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