pub struct McpAppsSetHostContextDetails {
pub available_display_modes: Option<Vec<McpAppsSetHostContextDetailsAvailableDisplayMode>>,
pub display_mode: Option<McpAppsSetHostContextDetailsDisplayMode>,
pub locale: Option<String>,
pub platform: Option<McpAppsSetHostContextDetailsPlatform>,
pub theme: Option<McpAppsSetHostContextDetailsTheme>,
pub time_zone: Option<String>,
pub user_agent: Option<String>,
}Expand description
Host context advertised to MCP App guests
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§available_display_modes: Option<Vec<McpAppsSetHostContextDetailsAvailableDisplayMode>>Display modes the host supports
display_mode: Option<McpAppsSetHostContextDetailsDisplayMode>Current display mode (SEP-1865)
locale: Option<String>BCP-47 locale, e.g. ‘en-US’
platform: Option<McpAppsSetHostContextDetailsPlatform>Platform type for responsive design
theme: Option<McpAppsSetHostContextDetailsTheme>UI theme preference per SEP-1865
time_zone: Option<String>IANA timezone, e.g. ‘America/New_York’
user_agent: Option<String>Host application identifier
Trait Implementations§
Source§impl Clone for McpAppsSetHostContextDetails
impl Clone for McpAppsSetHostContextDetails
Source§fn clone(&self) -> McpAppsSetHostContextDetails
fn clone(&self) -> McpAppsSetHostContextDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 McpAppsSetHostContextDetails
impl Debug for McpAppsSetHostContextDetails
Source§impl Default for McpAppsSetHostContextDetails
impl Default for McpAppsSetHostContextDetails
Source§fn default() -> McpAppsSetHostContextDetails
fn default() -> McpAppsSetHostContextDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpAppsSetHostContextDetails
impl<'de> Deserialize<'de> for McpAppsSetHostContextDetails
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 McpAppsSetHostContextDetails
impl RefUnwindSafe for McpAppsSetHostContextDetails
impl Send for McpAppsSetHostContextDetails
impl Sync for McpAppsSetHostContextDetails
impl Unpin for McpAppsSetHostContextDetails
impl UnsafeUnpin for McpAppsSetHostContextDetails
impl UnwindSafe for McpAppsSetHostContextDetails
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