pub enum SecurityMode {
Open,
Authenticated,
}Expand description
Security mode for the router
Variants§
Open
No authentication required (default for local development)
Authenticated
Token authentication required
Trait Implementations§
Source§impl Clone for SecurityMode
impl Clone for SecurityMode
Source§fn clone(&self) -> SecurityMode
fn clone(&self) -> SecurityMode
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 SecurityMode
impl Debug for SecurityMode
Source§impl Default for SecurityMode
impl Default for SecurityMode
Source§fn default() -> SecurityMode
fn default() -> SecurityMode
Returns the “default value” for a type. Read more
Source§impl Display for SecurityMode
impl Display for SecurityMode
Source§impl FromStr for SecurityMode
impl FromStr for SecurityMode
Source§impl PartialEq for SecurityMode
impl PartialEq for SecurityMode
impl Copy for SecurityMode
impl Eq for SecurityMode
impl StructuralPartialEq for SecurityMode
Auto Trait Implementations§
impl Freeze for SecurityMode
impl RefUnwindSafe for SecurityMode
impl Send for SecurityMode
impl Sync for SecurityMode
impl Unpin for SecurityMode
impl UnwindSafe for SecurityMode
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