pub struct ServerOptions {
pub require_key: bool,
pub oidc: Option<Arc<Verifier>>,
pub address: Option<SocketAddr>,
pub public_read: bool,
pub demo: bool,
}Expand description
How the running server decides who may publish, and what the UI and
GET /api/v1/settings tell viewers about it.
Fields§
§require_key: boolPublishing always needs a credential, even with no key created yet.
oidc: Option<Arc<Verifier>>Verifies OIDC tokens when a trust is configured.
address: Option<SocketAddr>The address the server listens on. serve fills it from the
listener when it is unset.
public_read: boolWhether the server was started with --public-read.
demo: boolWhether the data is generated sample data.
Trait Implementations§
Source§impl Clone for ServerOptions
impl Clone for ServerOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ServerOptions
impl !UnwindSafe for ServerOptions
impl Freeze for ServerOptions
impl Send for ServerOptions
impl Sync for ServerOptions
impl Unpin for ServerOptions
impl UnsafeUnpin for ServerOptions
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