web_sys/features/
gen_RtcRtpHeaderExtensionCapability.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "RTCRtpHeaderExtensionCapability"
10 )]
11 #[derive(Debug, Clone, PartialEq, Eq)]
12 #[doc = "The `RtcRtpHeaderExtensionCapability` dictionary."]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"]
15 pub type RtcRtpHeaderExtensionCapability;
16 #[doc = "Get the `uri` field of this object."]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"]
19 #[wasm_bindgen(method, getter = "uri")]
20 pub fn get_uri(this: &RtcRtpHeaderExtensionCapability) -> ::alloc::string::String;
21 #[doc = "Change the `uri` field of this object."]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"]
24 #[wasm_bindgen(method, setter = "uri")]
25 pub fn set_uri(this: &RtcRtpHeaderExtensionCapability, val: &str);
26}
27impl RtcRtpHeaderExtensionCapability {
28 #[doc = "Construct a new `RtcRtpHeaderExtensionCapability`."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"]
31 pub fn new(uri: &str) -> Self {
32 #[allow(unused_mut)]
33 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
34 ret.set_uri(uri);
35 ret
36 }
37 #[deprecated = "Use `set_uri()` instead."]
38 pub fn uri(&mut self, val: &str) -> &mut Self {
39 self.set_uri(val);
40 self
41 }
42}