[−][src]Struct firefox_native_manifest_types::NativeMessagingManifest
Manifest object for native messaging by which an extension can communicate with a native app installed on the device.
Fields
name: String
Name of the native application.
This must match the name passed into runtime.connectNative()
or runtime.sendNativeMessage()
by the extension.
On MacOS and Linux, it must also match the native messaging manifest's filename (excluding the .json extension).
On Windows, it must match the name of the registry key you create, that contains the location of the native messaging manifest.
The name must match the following regular expression: "^\w+(\.\w+)*$"
.
This means that it may only contain
(lowercase or uppercase) 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 native application.
path: PathBuf
Path to the native application.
On Windows, this may be relative to the manifest itself. On MacOS and Linux it must be absolute.
ty: NativeMessagingType
Describes the method used to connect the extension with the app.
allowed_extensions: Vec<String>
An array of Add-on ID values.
Each value represents an extension which is allowed to communicate with the native application.
Note that this means you will probably want to include the browser_specific_settings
key
in your extension's manifest.json
file, so you can set an explicit ID during development.
Trait Implementations
impl Debug for NativeMessagingManifest
[src]
impl<'de> Deserialize<'de> for NativeMessagingManifest
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for NativeMessagingManifest
[src]
Auto Trait Implementations
impl RefUnwindSafe for NativeMessagingManifest
impl Send for NativeMessagingManifest
impl Sync for NativeMessagingManifest
impl Unpin for NativeMessagingManifest
impl UnwindSafe for NativeMessagingManifest
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>,