electron_sys/interface/
import_certificate_options.rs1use js_sys::JsString;
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen]
5#[derive(Clone, Debug, Eq, PartialEq)]
6pub struct ImportCertificateOptions {
7 certificate: JsString,
8 password: JsString,
9}
10
11#[wasm_bindgen]
12impl ImportCertificateOptions {
13 #[wasm_bindgen(constructor)]
14 pub fn new(certificate: JsString, password: JsString) -> ImportCertificateOptions {
15 ImportCertificateOptions { certificate, password }
16 }
17
18 pub fn certificate(&self) -> JsString {
19 self.certificate.clone()
20 }
21
22 pub fn set_certificate(&mut self, certificate: JsString) {
23 self.certificate = certificate;
24 }
25
26 pub fn password(&self) -> JsString {
27 self.password.clone()
28 }
29
30 pub fn set_password(&mut self, password: JsString) {
31 self.password = password;
32 }
33}