pub struct Server {
pub port: Option<u16>,
pub suffix: Option<String>,
pub author: Option<String>,
pub theme: Option<String>,
pub scheme: Option<String>,
}Expand description
The [server] table. Every key is optional: a file listing only aliases is a perfectly
good file, and the defaults belong to the command line that owns them.
Fields§
§port: Option<u16>§suffix: Option<String>§theme: Option<String>What directory listings look like. See crate::theme.
The starting value only: a theme chosen later from the dashboard is remembered beside the token rather than written back here, because this file is hand-written and a daemon that rewrote it would eventually lose somebody’s comment.
scheme: Option<String>Accepted so that asking for https is refused rather than ignored.
The https mode is designed and not built. Of the three things that could happen to a file asking for it, serving http anyway is the worst, because it looks like it worked.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
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