pub struct HttpCommandAuth { /* private fields */ }Expand description
Bearer-token requirements and verifier for HTTP Runtime routes.
Implementations§
Source§impl HttpCommandAuth
impl HttpCommandAuth
Sourcepub fn required(verifier: Arc<dyn CommandTokenVerifier>) -> Self
pub fn required(verifier: Arc<dyn CommandTokenVerifier>) -> Self
Requires command and query authentication through verifier.
Sourcepub fn with_public_status(self, public_status: bool) -> Self
pub fn with_public_status(self, public_status: bool) -> Self
Controls unauthenticated access to the reduced status response.
Sourcepub fn requires_token(&self) -> bool
pub fn requires_token(&self) -> bool
Returns whether command and query endpoints require bearer tokens.
Sourcepub fn allows_public_status(&self) -> bool
pub fn allows_public_status(&self) -> bool
Returns whether unauthenticated callers may read reduced status.
Trait Implementations§
Source§impl Clone for HttpCommandAuth
impl Clone for HttpCommandAuth
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