pub struct Privileges { /* private fields */ }
Implementations§
Source§impl Privileges
impl Privileges
pub fn new( allow_service_workers: Option<bool>, bypass_csp: Option<bool>, cors_enabled: Option<bool>, secure: Option<bool>, standard: Option<bool>, support_fetch_api: Option<bool>, ) -> Privileges
pub fn allow_service_workers(self) -> Option<bool>
pub fn set_allow_service_workers(self, value: Option<bool>)
pub fn bypass_csp(self) -> Option<bool>
pub fn set_bypass_csp(self, value: Option<bool>)
pub fn cors_enabled(self) -> Option<bool>
pub fn set_cors_enabled(self, value: Option<bool>)
pub fn secure(self) -> Option<bool>
pub fn set_secure(self, value: Option<bool>)
pub fn standard(self) -> Option<bool>
pub fn set_standard(self, value: Option<bool>)
pub fn support_fetch_api(self) -> Option<bool>
pub fn set_support_fetch_api(self, value: Option<bool>)
Trait Implementations§
Source§impl Clone for Privileges
impl Clone for Privileges
Source§fn clone(&self) -> Privileges
fn clone(&self) -> Privileges
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Privileges
impl Debug for Privileges
Source§impl Default for Privileges
impl Default for Privileges
Source§fn default() -> Privileges
fn default() -> Privileges
Returns the “default value” for a type. Read more
Source§impl From<Privileges> for JsValue
impl From<Privileges> for JsValue
Source§fn from(value: Privileges) -> Self
fn from(value: Privileges) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for Privileges
impl FromWasmAbi for Privileges
Source§impl Hash for Privileges
impl Hash for Privileges
Source§impl IntoWasmAbi for Privileges
impl IntoWasmAbi for Privileges
Source§impl LongRefFromWasmAbi for Privileges
impl LongRefFromWasmAbi for Privileges
Source§impl OptionFromWasmAbi for Privileges
impl OptionFromWasmAbi for Privileges
Source§impl OptionIntoWasmAbi for Privileges
impl OptionIntoWasmAbi for Privileges
Source§impl PartialEq for Privileges
impl PartialEq for Privileges
Source§impl PartialOrd for Privileges
impl PartialOrd for Privileges
Source§impl RefFromWasmAbi for Privileges
impl RefFromWasmAbi for Privileges
Source§type Anchor = RcRef<Privileges>
type Anchor = RcRef<Privileges>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for Privileges
impl RefMutFromWasmAbi for Privileges
Source§impl TryFromJsValue for Privileges
impl TryFromJsValue for Privileges
Source§impl VectorFromWasmAbi for Privileges
impl VectorFromWasmAbi for Privileges
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Privileges]>
Source§impl VectorIntoJsValue for Privileges
impl VectorIntoJsValue for Privileges
fn vector_into_jsvalue(vector: Box<[Privileges]>) -> JsValue
Source§impl VectorIntoWasmAbi for Privileges
impl VectorIntoWasmAbi for Privileges
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Privileges]>) -> Self::Abi
Source§impl WasmDescribeVector for Privileges
impl WasmDescribeVector for Privileges
impl Copy for Privileges
impl Eq for Privileges
impl StructuralPartialEq for Privileges
impl SupportsConstructor for Privileges
impl SupportsInstanceProperty for Privileges
impl SupportsStaticProperty for Privileges
Auto Trait Implementations§
impl Freeze for Privileges
impl RefUnwindSafe for Privileges
impl Send for Privileges
impl Sync for Privileges
impl Unpin for Privileges
impl UnwindSafe for Privileges
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.