pub enum ApiDocs {
Open,
Basic(Arc<dyn BasicCredentials>),
Permission(&'static str),
}Expand description
Who may read the API documentation (openapi.json and the reference page).
Variants§
Open
Anyone who can reach the server.
Basic(Arc<dyn BasicCredentials>)
HTTP basic authentication. Use only over HTTPS and together with a rate limit.
Permission(&'static str)
Signed in users with this permission.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ApiDocs
impl !UnwindSafe for ApiDocs
impl Freeze for ApiDocs
impl Send for ApiDocs
impl Sync for ApiDocs
impl Unpin for ApiDocs
impl UnsafeUnpin for ApiDocs
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