pub struct HttpCommandAuth {
pub require_token: bool,
pub public_status: bool,
pub verifier: Option<Arc<dyn CommandTokenVerifier>>,
}Expand description
Bearer-token requirements and verifier for HTTP Runtime routes.
Fields§
§require_token: boolWhether command and query endpoints require a bearer token.
public_status: boolWhether unauthenticated callers may read the reduced status response.
verifier: Option<Arc<dyn CommandTokenVerifier>>Token verifier used when authentication is required.
Trait Implementations§
Source§impl Clone for HttpCommandAuth
impl Clone for HttpCommandAuth
Source§fn clone(&self) -> HttpCommandAuth
fn clone(&self) -> HttpCommandAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for HttpCommandAuth
impl Default for HttpCommandAuth
Source§fn default() -> HttpCommandAuth
fn default() -> HttpCommandAuth
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HttpCommandAuth
impl !UnwindSafe for HttpCommandAuth
impl Freeze for HttpCommandAuth
impl Send for HttpCommandAuth
impl Sync for HttpCommandAuth
impl Unpin for HttpCommandAuth
impl UnsafeUnpin for HttpCommandAuth
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