pub struct PreviewConfig {
pub mcp_url: String,
pub port: u16,
pub initial_tool: Option<String>,
pub theme: String,
pub locale: String,
}Expand description
Configuration for the preview server
Fields§
§mcp_url: StringURL of the target MCP server
port: u16Port for the preview server
initial_tool: Option<String>Initial tool to select
theme: StringInitial theme (light/dark)
locale: StringInitial locale
Trait Implementations§
Source§impl Clone for PreviewConfig
impl Clone for PreviewConfig
Source§fn clone(&self) -> PreviewConfig
fn clone(&self) -> PreviewConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreviewConfig
impl Debug for PreviewConfig
Auto Trait Implementations§
impl Freeze for PreviewConfig
impl RefUnwindSafe for PreviewConfig
impl Send for PreviewConfig
impl Sync for PreviewConfig
impl Unpin for PreviewConfig
impl UnwindSafe for PreviewConfig
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