pub struct Server {
pub port: Option<u16>,
pub suffix: 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>http or https.
https terminates TLS behind a CONNECT, using a local authority constrained to the
suffix — see crate::tls. It needs that authority trusted once, which ssh-browser trust prints the command for, so it is opt-in rather than the default.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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