#[non_exhaustive]pub struct Capabilities { /* private fields */ }
Implementations§
Source§impl Capabilities
impl Capabilities
pub fn all() -> Self
pub fn none() -> Self
pub fn with_scripting(self, scripting: bool) -> Self
pub fn with_guest_access(self, guest_access: bool) -> Self
pub fn with_live_query_notifications( self, live_query_notifications: bool, ) -> Self
pub fn with_functions(self, allow_funcs: Targets<FuncTarget>) -> Self
pub fn without_functions(self, deny_funcs: Targets<FuncTarget>) -> Self
pub fn with_experimental( self, allow_experimental: Targets<ExperimentalTarget>, ) -> Self
pub fn without_experimental( self, deny_experimental: Targets<ExperimentalTarget>, ) -> Self
pub fn with_arbitrary_query( self, allow_arbitrary_query: Targets<ArbitraryQueryTarget>, ) -> Self
pub fn without_arbitrary_query( self, deny_arbitrary_query: Targets<ArbitraryQueryTarget>, ) -> Self
pub fn with_network_targets(self, allow_net: Targets<NetTarget>) -> Self
pub fn without_network_targets(self, deny_net: Targets<NetTarget>) -> Self
pub fn with_rpc_methods(self, allow_rpc: Targets<MethodTarget>) -> Self
pub fn without_rpc_methods(self, deny_rpc: Targets<MethodTarget>) -> Self
pub fn with_http_routes(self, allow_http: Targets<RouteTarget>) -> Self
pub fn without_http_routes(self, deny_http: Targets<RouteTarget>) -> Self
pub fn allows_scripting(&self) -> bool
pub fn allows_guest_access(&self) -> bool
pub fn allows_live_query_notifications(&self) -> bool
pub fn allows_function_name(&self, target: &str) -> bool
pub fn allows_experimental(&self, target: &ExperimentalTarget) -> bool
pub fn allows_experimental_name(&self, target: &str) -> bool
pub fn allows_query(&self, target: &ArbitraryQueryTarget) -> bool
pub fn allows_query_name(&self, target: &str) -> bool
pub fn allows_network_target(&self, target: &NetTarget) -> bool
pub fn allows_rpc_method(&self, target: &MethodTarget) -> bool
pub fn allows_http_route(&self, target: &RouteTarget) -> bool
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
Returns a copy 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 Capabilities
impl Debug for Capabilities
Source§impl Default for Capabilities
impl Default for Capabilities
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more