pub struct McpAppsResourceMetadata {
pub csp: Option<McpAppsResourceCsp>,
pub permissions: Option<McpAppsResourcePermissions>,
pub domain: Option<String>,
pub prefers_border: Option<bool>,
}Expand description
Closed Apps rendering metadata attached to a Resource under _meta.ui.
Fields§
§csp: Option<McpAppsResourceCsp>Optional CSP declarations for the rendered view.
permissions: Option<McpAppsResourcePermissions>Optional sandbox permission requests.
domain: Option<String>Optional host-defined dedicated view domain.
prefers_border: Option<bool>Whether the View prefers a visible host-provided border and background.
Implementations§
Source§impl McpAppsResourceMetadata
impl McpAppsResourceMetadata
Sourcepub const fn new(prefers_border: Option<bool>) -> Self
pub const fn new(prefers_border: Option<bool>) -> Self
Creates closed non-security resource presentation metadata.
Sourcepub fn try_new(
csp: Option<McpAppsResourceCsp>,
permissions: Option<McpAppsResourcePermissions>,
domain: Option<String>,
prefers_border: Option<bool>,
) -> Result<Self, McpAppsMetadataError>
pub fn try_new( csp: Option<McpAppsResourceCsp>, permissions: Option<McpAppsResourcePermissions>, domain: Option<String>, prefers_border: Option<bool>, ) -> Result<Self, McpAppsMetadataError>
Creates bounded resource rendering metadata with all currently stable Apps fields. The domain is retained as host-defined opaque data.
Sourcepub fn to_open_metadata(&self) -> Result<OpenMetadata, McpAppsMetadataError>
pub fn to_open_metadata(&self) -> Result<OpenMetadata, McpAppsMetadataError>
Produces a standalone final _meta object containing this exact nested
Apps member.
Sourcepub fn merge_into(
&self,
metadata: &OpenMetadata,
) -> Result<OpenMetadata, McpAppsMetadataError>
pub fn merge_into( &self, metadata: &OpenMetadata, ) -> Result<OpenMetadata, McpAppsMetadataError>
Merges this typed ui member into existing final open metadata.
Trait Implementations§
Source§impl Clone for McpAppsResourceMetadata
impl Clone for McpAppsResourceMetadata
Source§fn clone(&self) -> McpAppsResourceMetadata
fn clone(&self) -> McpAppsResourceMetadata
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 McpAppsResourceMetadata
impl Debug for McpAppsResourceMetadata
Source§impl Default for McpAppsResourceMetadata
impl Default for McpAppsResourceMetadata
Source§fn default() -> McpAppsResourceMetadata
fn default() -> McpAppsResourceMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpAppsResourceMetadata
impl<'de> Deserialize<'de> for McpAppsResourceMetadata
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
impl Eq for McpAppsResourceMetadata
Source§impl PartialEq for McpAppsResourceMetadata
impl PartialEq for McpAppsResourceMetadata
Source§impl Serialize for McpAppsResourceMetadata
impl Serialize for McpAppsResourceMetadata
impl StructuralPartialEq for McpAppsResourceMetadata
Auto Trait Implementations§
impl Freeze for McpAppsResourceMetadata
impl RefUnwindSafe for McpAppsResourceMetadata
impl Send for McpAppsResourceMetadata
impl Sync for McpAppsResourceMetadata
impl Unpin for McpAppsResourceMetadata
impl UnsafeUnpin for McpAppsResourceMetadata
impl UnwindSafe for McpAppsResourceMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).