[−][src]Struct firefox_native_manifest_types::Pkcs11Manifest
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Pkcs11Manifest
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pkcs11Manifest
impl Send for Pkcs11Manifest
impl Sync for Pkcs11Manifest
impl Unpin for Pkcs11Manifest
impl UnwindSafe for Pkcs11Manifest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,