pub enum DefaultPermissions {
AllowAll,
Permissions(Permissions),
}Expand description
The default permissions to use for all connections to the server.
Variants§
AllowAll
Allow all permissions. Do not use outside of completely trusted environments.
Permissions(Permissions)
A defined set of permissions.
Trait Implementations§
Source§impl Clone for DefaultPermissions
impl Clone for DefaultPermissions
Source§fn clone(&self) -> DefaultPermissions
fn clone(&self) -> DefaultPermissions
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 DefaultPermissions
impl Debug for DefaultPermissions
Source§impl From<DefaultPermissions> for Permissions
impl From<DefaultPermissions> for Permissions
Source§fn from(permissions: DefaultPermissions) -> Self
fn from(permissions: DefaultPermissions) -> Self
Converts to this type from the input type.
Source§impl From<Permissions> for DefaultPermissions
impl From<Permissions> for DefaultPermissions
Source§fn from(permissions: Permissions) -> Self
fn from(permissions: Permissions) -> Self
Converts to this type from the input type.
Source§impl From<Statement> for DefaultPermissions
impl From<Statement> for DefaultPermissions
Auto Trait Implementations§
impl Freeze for DefaultPermissions
impl RefUnwindSafe for DefaultPermissions
impl Send for DefaultPermissions
impl Sync for DefaultPermissions
impl Unpin for DefaultPermissions
impl UnwindSafe for DefaultPermissions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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