pub struct ClientConfig {
pub mark: Option<String>,
pub theme: Option<String>,
pub font: Option<String>,
}Expand description
The [client] block of forge.toml: which of the sets forge ships a
client draws with. The server carries these to a client on connect,
so a client never reads forge.toml itself.
Fields§
§mark: Option<String>The mark, by name from MARK_NAMES. None is the built-in,
never a pinned value: a commented line in a hand-authored
forge.toml has to mean “unset”.
theme: Option<String>The palette, by name from THEME_NAMES.
font: Option<String>The typefaces, by name from FONT_NAMES. None is the built-in
face - Fira Code for prose and code alike - shipped beside the view
rather than left to whatever the OS has.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§impl<'de> Deserialize<'de> for ClientConfigwhere
ClientConfig: Default,
impl<'de> Deserialize<'de> for ClientConfigwhere
ClientConfig: Default,
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 ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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