Skip to main content

PluginRecord

Struct PluginRecord 

Source
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: PluginSource

Trust lane the lock line declares. 锁记录声明的信任通道。

§framework: String

Target framework this record was written for. 本记录针对的目标框架。

§package: String

Package name of the plugin. 插件的包名。

§version: String

Plugin version exactly as the lock spelled it. 锁文件中原样写下的插件版本。

§crate_name: String

Rust crate that carries the plugin implementation. 承载插件实现的 Rust crate。

§checksum: String

Digest the plugin bytes must match. 插件字节必须匹配的摘要。

§mode: PluginMode

Whether 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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for PluginRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for PluginRecord

Source§

impl PartialEq for PluginRecord

Source§

fn eq(&self, other: &PluginRecord) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PluginRecord

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.