pub struct ServeConfig {
pub data_dir: PathBuf,
pub addr: SocketAddr,
pub public_read: bool,
pub trusts: Vec<Trust>,
pub public_url: Option<String>,
pub demo: bool,
}Expand description
Where and how tuff console serve listens.
Fields§
§data_dir: PathBuf§addr: SocketAddr§public_read: boolAcknowledges that viewing is not authenticated on a non-loopback address (D5).
trusts: Vec<Trust>Sources of OIDC tokens the console accepts for publishing.
public_url: Option<String>The URL publishers reach the console at, which OIDC tokens name as
their audience. http://<bound address> when unset.
demo: boolServe generated sample projects from a temporary database instead of the data folder.
Trait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Auto Trait Implementations§
impl Freeze for ServeConfig
impl RefUnwindSafe for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
impl UnwindSafe for ServeConfig
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