@@ -15,29 +15,41 @@ extern "C" {
15
15
#[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
16
16
#[ wasm_bindgen( method, getter = "name" ) ]
17
17
pub fn get_name ( this : & AesGcmParams ) -> String ;
18
+ #[ doc = "Change the `name` field of this object." ]
19
+ #[ doc = "" ]
20
+ #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
18
21
#[ wasm_bindgen( method, setter = "name" ) ]
19
- fn set_name ( this : & AesGcmParams , val : & str ) ;
22
+ pub fn set_name ( this : & AesGcmParams , val : & str ) ;
20
23
#[ doc = "Get the `additionalData` field of this object." ]
21
24
#[ doc = "" ]
22
25
#[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
23
26
#[ wasm_bindgen( method, getter = "additionalData" ) ]
24
27
pub fn get_additional_data ( this : & AesGcmParams ) -> Option < :: js_sys:: Object > ;
28
+ #[ doc = "Change the `additionalData` field of this object." ]
29
+ #[ doc = "" ]
30
+ #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
25
31
#[ wasm_bindgen( method, setter = "additionalData" ) ]
26
- fn set_additional_data ( this : & AesGcmParams , val : & :: js_sys:: Object ) ;
32
+ pub fn set_additional_data ( this : & AesGcmParams , val : & :: js_sys:: Object ) ;
27
33
#[ doc = "Get the `iv` field of this object." ]
28
34
#[ doc = "" ]
29
35
#[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
30
36
#[ wasm_bindgen( method, getter = "iv" ) ]
31
37
pub fn get_iv ( this : & AesGcmParams ) -> :: js_sys:: Object ;
38
+ #[ doc = "Change the `iv` field of this object." ]
39
+ #[ doc = "" ]
40
+ #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
32
41
#[ wasm_bindgen( method, setter = "iv" ) ]
33
- fn set_iv ( this : & AesGcmParams , val : & :: js_sys:: Object ) ;
42
+ pub fn set_iv ( this : & AesGcmParams , val : & :: js_sys:: Object ) ;
34
43
#[ doc = "Get the `tagLength` field of this object." ]
35
44
#[ doc = "" ]
36
45
#[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
37
46
#[ wasm_bindgen( method, getter = "tagLength" ) ]
38
47
pub fn get_tag_length ( this : & AesGcmParams ) -> Option < u8 > ;
48
+ #[ doc = "Change the `tagLength` field of this object." ]
49
+ #[ doc = "" ]
50
+ #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
39
51
#[ wasm_bindgen( method, setter = "tagLength" ) ]
40
- fn set_tag_length ( this : & AesGcmParams , val : u8 ) ;
52
+ pub fn set_tag_length ( this : & AesGcmParams , val : u8 ) ;
41
53
}
42
54
impl AesGcmParams {
43
55
#[ doc = "Construct a new `AesGcmParams`." ]
@@ -50,30 +62,22 @@ impl AesGcmParams {
50
62
ret. iv ( iv) ;
51
63
ret
52
64
}
53
- #[ doc = "Change the `name` field of this object." ]
54
- #[ doc = "" ]
55
- #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
65
+ #[ deprecated = "Use `set_name()` instead." ]
56
66
pub fn name ( & mut self , val : & str ) -> & mut Self {
57
67
self . set_name ( val) ;
58
68
self
59
69
}
60
- #[ doc = "Change the `additionalData` field of this object." ]
61
- #[ doc = "" ]
62
- #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
70
+ #[ deprecated = "Use `set_additional_data()` instead." ]
63
71
pub fn additional_data ( & mut self , val : & :: js_sys:: Object ) -> & mut Self {
64
72
self . set_additional_data ( val) ;
65
73
self
66
74
}
67
- #[ doc = "Change the `iv` field of this object." ]
68
- #[ doc = "" ]
69
- #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
75
+ #[ deprecated = "Use `set_iv()` instead." ]
70
76
pub fn iv ( & mut self , val : & :: js_sys:: Object ) -> & mut Self {
71
77
self . set_iv ( val) ;
72
78
self
73
79
}
74
- #[ doc = "Change the `tagLength` field of this object." ]
75
- #[ doc = "" ]
76
- #[ doc = "*This API requires the following crate features to be activated: `AesGcmParams`*" ]
80
+ #[ deprecated = "Use `set_tag_length()` instead." ]
77
81
pub fn tag_length ( & mut self , val : u8 ) -> & mut Self {
78
82
self . set_tag_length ( val) ;
79
83
self
0 commit comments