[][src]Struct firefox_native_manifest_types::Pkcs11Manifest

pub struct Pkcs11Manifest {
    pub name: String,
    pub description: String,
    pub path: PathBuf,
    pub ty: Pkcs11Type,
    pub allowed_extensions: Vec<String>,
}

Enable an extension to use the pkcs11 API to enumerate PKCS #11 security modules and install them in Firefox.

Fields

name: String

Name of the PKCS #11 module.

This must match the name used in the pkcs11 API.

On MacOS and Linux, it must also match the manifest's filename (excluding the extension).

On Windows, it must match the name of the registry key you create, which contains the location of the manifest.

The name must match the following regular expression: "^\w+(\.\w+)*$". This means that it may only contain lowercase alphanumeric characters, underscores and dots. It may not start or end with a dot, and a dot cannot be followed by another dot.

description: String

Description of the module. This is used to set the friendly name for the module in the browser's UI (for example, the "Security Devices" dialog in Firefox).

path: PathBuf

Path to the module.

On Windows, this may be relative to the manifest itself. On MacOS and Linux it must be absolute.

ty: Pkcs11Type

This must be "pkcs11".

allowed_extensions: Vec<String>

An array of Add-on ID values. Each value represents an extension which is allowed to interact with the module.

Note: This means you will probably want to include the applications key in your extension's manifest.json file, so you can set an explicit ID during development.

Trait Implementations

impl Debug for Pkcs11Manifest[src]

impl<'de> Deserialize<'de> for Pkcs11Manifest[src]

impl Serialize for Pkcs11Manifest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.