pub struct SecurityLevels {
pub encryption: bool,
pub authentication: bool,
pub authorization: bool,
}
Fields§
§encryption: bool
Encryption is required / provided
authentication: bool
Authentication is required / provided
Authorization is required / provided
Implementations§
Source§impl SecurityLevels
impl SecurityLevels
pub fn satisfied(&self, provided: SecurityLevels) -> bool
pub const fn encryption_required() -> Self
Trait Implementations§
Source§impl Clone for SecurityLevels
impl Clone for SecurityLevels
Source§fn clone(&self) -> SecurityLevels
fn clone(&self) -> SecurityLevels
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 SecurityLevels
impl Debug for SecurityLevels
Source§impl Default for SecurityLevels
impl Default for SecurityLevels
Source§fn default() -> SecurityLevels
fn default() -> SecurityLevels
Returns the “default value” for a type. Read more
impl Copy for SecurityLevels
Auto Trait Implementations§
impl Freeze for SecurityLevels
impl RefUnwindSafe for SecurityLevels
impl Send for SecurityLevels
impl Sync for SecurityLevels
impl Unpin for SecurityLevels
impl UnwindSafe for SecurityLevels
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