pub struct McpAppsHostContextDetails {
pub available_display_modes: Option<Vec<McpAppsHostContextDetailsAvailableDisplayMode>>,
pub display_mode: Option<McpAppsHostContextDetailsDisplayMode>,
pub locale: Option<String>,
pub platform: Option<McpAppsHostContextDetailsPlatform>,
pub theme: Option<McpAppsHostContextDetailsTheme>,
pub time_zone: Option<String>,
pub user_agent: Option<String>,
}Expand description
Current host context
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<McpAppsHostContextDetailsAvailableDisplayMode>>Display modes the host supports
display_mode: Option<McpAppsHostContextDetailsDisplayMode>Current display mode (SEP-1865)
locale: Option<String>BCP-47 locale, e.g. ‘en-US’
platform: Option<McpAppsHostContextDetailsPlatform>Platform type for responsive design
theme: Option<McpAppsHostContextDetailsTheme>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 McpAppsHostContextDetails
impl Clone for McpAppsHostContextDetails
Source§fn clone(&self) -> McpAppsHostContextDetails
fn clone(&self) -> McpAppsHostContextDetails
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 McpAppsHostContextDetails
impl Debug for McpAppsHostContextDetails
Source§impl Default for McpAppsHostContextDetails
impl Default for McpAppsHostContextDetails
Source§fn default() -> McpAppsHostContextDetails
fn default() -> McpAppsHostContextDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpAppsHostContextDetails
impl<'de> Deserialize<'de> for McpAppsHostContextDetails
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 McpAppsHostContextDetails
impl RefUnwindSafe for McpAppsHostContextDetails
impl Send for McpAppsHostContextDetails
impl Sync for McpAppsHostContextDetails
impl Unpin for McpAppsHostContextDetails
impl UnsafeUnpin for McpAppsHostContextDetails
impl UnwindSafe for McpAppsHostContextDetails
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